python 中的树形库

发布于 2024-08-25 01:32:35 字数 1807 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

迟月 2024-09-01 01:32:35

我对 treelib 很满意。它解决了我的问题。不过可以使用更多的文档。但代码很清楚。

I'm happy with treelib. It addresses my problem. Could use a bit more documentation though. But the code is clear.

稚气少女 2024-09-01 01:32:35

pypi,Python 包索引,建议 tinytree, treedictcaxespyavl ...这些只是过滤掉许多意外点击后的前几个(指向特定的树,例如 XML 树、AST 树等;-)。如果您明确要如何处理树木,那么建议特定的软件包可能会更容易。

pypi, the Python Package Index, suggests tinytree, treedict, caxes, pyavl... these are just the top few after filtering away the many accidental hits (which point to specific tree such as XML ones, AST ones, etc, etc;-). If you clarify what you want to do with your trees it may be easier to suggest a specific package.

狂之美人 2024-09-01 01:32:35

尽管 ETE 库最初似乎是为与系统发育树一起开发的,但它实现了许多通用功能来与任何类型一起工作层次树结构,包括编程树绘制和可视化。

如果您想探索的话,这里有一个全面的教程和参考指南

Although the ETE library seems to be originally developed to work with Phylogenetic trees, it implements many general features to work with any type of hierarchical tree structures, including programmatic tree drawing and visualization.

There is a comprehensive tutorial and a reference guide, in case you want to explore it.

暮色兮凉城 2024-09-01 01:32:35

python-graph 似乎是一个相当彻底和完整的包,并且可以导出 DOT 图与 Graphviz 一起使用。

python-graph seems to be a fairly thorough and complete package, and can export DOT graphs for use with Graphviz.

也只是曾经 2024-09-01 01:32:35

您可能想查看 cElementTree

You probably want to look at cElementTree.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文