Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to draw B-Trees on Graphviz?

Tags:

graphviz

dot

I am trying to generate something similar to this:

https://upload.wikimedia.org/wikipedia/commons/6/65/B-tree.svg

From a btree in memory... is there any way to generate a graph like that on Graphviz, so that I can generate the *.dot file?

Thanks.

like image 439
paulotorrens Avatar asked Nov 14 '13 18:11

paulotorrens


1 Answers

Go to http://ysangkok.github.io/js-clrs-btree/btree.html and press "init simple". In the textarea you see Graphviz code for the tree shown above. The algorithm is simple, as you can see.

like image 142
Janus Troelsen Avatar answered Sep 25 '22 01:09

Janus Troelsen