Graphviz quickly generates flowcharts

Install graphviz and
set the environment variable path=C:\Program Files (x86)\Graphviz2.38\bin
Command: dot -T png d:/test.txt -od:/test.png

Document https://graphviz.gitlab.io/documentation/
download address https://graphviz.gitlab.io/_pages/Download/Download_windows.html
style https://renenyffenegger.ch/notes/tools/Graphviz/examples/index

#参考
digraph{
rankdir=LR#水平方向
node[fontname="Microsoft YaHei"]#设置字体防乱码
start[label="开始"]
start->a
a[shape=diamond]
a->b[label="a->b"]
a->c[style=dashed,fontname="Microsoft YaHei",color="#ff0000"]
b->结束
c->结束

subgraph cluster_sub{
label="cc";
a2->b2
}
}

 

Guess you like

Origin blog.csdn.net/slwsss/article/details/105205460