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

I am trying to generate something similar to this:

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

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

Thanks.

+4
source share
2 answers

Go to http://ysangkok.imtqy.com/js-clrs-btree/btree.html and click on "init simple". In the text box, you see Graphviz code for the tree shown above. The algorithm is simple, as you can see.

+5
source

Yes

You can use rankdir, etc. to set the direction in which it is nested.

(digraph), ( , ), , , A -> B [dir="backwards"].

A B, B A

" " ( ), , , , (A- > B- > C A- > D- > C - ), .

: .

-1

All Articles