简体   繁体   中英

Generate a Hierarchical diagram in Python

I have a BOM structured in a CSV as follows

1, Part 1
2, Part 12
2, Part 13
3, Part 123
1, Part 2
2, Part 22

Is there some way to create a hierarchical diagram such as this one in Python? Any help at all would be appreciated! http://mirror.neu.edu.cn/mysql/tech-resources/articles/hierarchical-data-1.png

You can generate a DOT description and render it with Graphviz . There are many Python bindings for it: http://www.graphviz.org/Resources.php

pydotGraphviz的接口,它可以处理各种图形

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM