graphviz快速生成流程图

安装graphviz
设置环境变量path=C:\Program Files (x86)\Graphviz2.38\bin
命令:dot -T png d:/test.txt -o d:/test.png

文档https://graphviz.gitlab.io/documentation/
下载地址https://graphviz.gitlab.io/_pages/Download/Download_windows.html
样式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
}
}

猜你喜欢

转载自blog.csdn.net/slwsss/article/details/105205460