CodeStandard/python_libs/graphviz.txt
2024-06-07 20:00:25 +03:00

16 lines
461 B
Plaintext

https://forum.graphviz.org/t/new-simplified-installation-procedure-on-windows/224
https://graphviz.readthedocs.io/en/stable/manual.html
====== install =========
pip install graphviz
======= config ========
from graphviz import Digraph
============= use ==============
dot = Digraph(comment='The Round Table')
dot.node('A', 'King Arthur')
dot.node('B', 'Sir Bedevere the Wise')
dot.node('L', 'Sir Lancelot the Brave')
dot.edges(['AB', 'AL'])
print(dot.source)