py3dot:Graphviz 的 Python 3 接口

时间:2021-06-01 21:02:47
【文件属性】:
文件名称:py3dot:Graphviz 的 Python 3 接口
文件大小:44KB
文件格式:ZIP
更新时间:2021-06-01 21:02:47
Python py3dot py3dot 是 Graphviz 的 Python 3 接口。 用法 创建一个简单的有向图并绘制图形。 from py3dot import Graph graph = Graph () graph . add_edges_from ([( 'A' , 'B' ), ( 'A' , 'C' ), ( 'B' , 'D' )]) graph . save_fig ( 'my_graph.png' ) # yields following fig.
【文件预览】:
py3dot-master
----.gitignore(738B)
----images()
--------my_graph.png(9KB)
----py3dot()
--------__init__.py(0B)
--------graph.py(11KB)
--------attributes.py(16KB)
----examples()
--------hello.py(127B)
--------unix.py(2KB)
--------fsm.py(1KB)
--------siblings.py(41KB)
--------profile.py(10KB)
--------root.py(185KB)
----README.md(325B)
----tests()
--------__init__.py(0B)
--------graph_test.py(6KB)

网友评论