GraphViz 画流程图

来源:互联网 发布:linux daemon 进程 编辑:程序博客网 时间:2024/05/02 00:09

参考1

官方参考:点击打开链接

digraph G {edge [fontname="Microsoft YaHei"];node [shape="box", fontname="Microsoft YaHei" size="20,20"];{step1 [label="第一步:预处理: 5秒"];step2 [label="第二步:获取数据: 1小时"  ];}node [shape="box", fontname="Microsoft YaHei" size="20,20"];{sub_step1 [label="第一步:预处理: 5秒"];sub_step2 [label="第二步:获取数据: 1小时"  ];}node [shape=oval, fontname="Microsoft YaHei" ]{begin [label="开始时间:00:00:00"];end [label="结束时间:06:00:00" ];}subgraph cluster_main{label="主采集服务器";bgcolor="mintcream";fontname="Microsoft YaHei";style="dashed";step1;step2;}subgraph cluster_sub{label="次采集服务器";bgcolor="mintcream";fontname="Microsoft YaHei";style="dashed";sub_step1;sub_step2;}begin -> step1;begin -> sub_step1;step1 -> step2;sub_step1 -> sub_step2;step2 -> end;sub_step2 -> end;}

原创粉丝点击