有没有办法在Graphviz上绘制B树? [英] Is there a way to draw B-Trees on Graphviz?

查看:203
本文介绍了有没有办法在Graphviz上绘制B树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试生成与此类似的内容:

I am trying to generate something similar to this:

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

从内存中的btree中...有没有办法像在Graphviz上那样生成图形,以便我可以生成* .dot文件?

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?

谢谢.

推荐答案

转到 http://ysangkok.github.io/js-clrs-btree/btree.html ,然后按初始化简单".在文本区域中,您将看到上面显示的树的Graphviz代码.如您所见,该算法很简单.

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.

这篇关于有没有办法在Graphviz上绘制B树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆