digraph G {
/*全局设定*/
graph [label=".dot图例-元素约定",
labeljust="l",labelloc="t",center=1,
ranksep=0.2,ratio=compress,
rankdir=TB,
];
node[fontsize=10.0,
height=0.1,
style=filled,fillcolor=snow,
color=darkolivegreen,fontcolor=darkolivegreen,
shape=plaintext,
];
edge [fontsize=9.0,fontcolor=yellowgreen,
color=gray30,
];
/*图元声明*/
start [label="流程开始/结束",shape=point];
end [label="",shape=doublecircle,fillcolor=red];
box [label="实体/对象",shape=box];
ellipse [label="行动/节点",shape=ellipse];
egg [label="用户/人物",shape=egg];
plaintext [label="状态/属性",shape=plaintext,fillcolor=whitesmoke];
diamond [label="判别",shape=diamond];
note [label="注释",shape=note];
tab [label="目录/模块",shape=tab];
db [label="数据库",shape=box3d];
component [label="主机/组件",shape=component];
/*图例关系*/
}
digraph G {
/*全局设定*/
graph [label=".dot图例-元素组合表达示例",
labeljust="r",labelloc="t",center=1,
ranksep=0.2,ratio=compress,
rankdir=TB,
];
node[fontsize=10.0,
height=0.1,
style=filled,fillcolor=snow,
color=darkolivegreen,fontcolor=darkolivegreen,
shape=plaintext,
];
edge [fontsize=9.0,fontcolor=yellowgreen,
color=gray30,
];
/*图元声明*/
start [label="流程开始/结束",shape=point];
end [label="",shape=doublecircle,fillcolor=red];
login [label="登录",shape=box];
alert [label="提示\n错误",shape=box];
PPCC [label="PPCC",shape=box];
act1 [label="act1",shape=ellipse];
act2 [label="act2",shape=ellipse];
user [label="staff\nuser",shape=egg];
tracstage [label="传票:\nstage=try",shape=plaintext,fillcolor=whitesmoke];
ksso [label="KSSO",shape=diamond];
ksso2 [label="KSSO将升级到\n KSSO2",shape=note];
proxy [label="反向代理",shape=component];
staff [label="Staff主机",shape=component];
squery [label="suery\nKSSO查询接口",shape=tab];
s904 [label="Staff9.04实例",shape=tab];
s906 [label="Staff9.06实例",shape=tab];
pg [label="pg数据仓库",shape=box3d];
/*图例关系*/
start->act1 [label="流程开始"];
act1->tracstage->act2;
act2->end [label="流程结束"];
user->login->ksso->alert;ksso->PPCC;
ksso2->ksso [arrowtail=none,arrowhead=none,style=dashed]
proxy->staff->pg [arrowtail=normal];
s904->staff [arrowhead=dot];
s906->staff [arrowhead=dot];
squery->staff [arrowhead=dot];
}
参考:在维基中使用 Graphviz