安装。
编写dot文件
“a”与“b”都是节点。
用->代表有向边。-代表无向边。“ ”中间的是节点中要显示的内容。
也可以
lable里面是节点的内容,a、b此时都是节点的名字而已。
shape 节点的形状
color 节点边颜色。
style 当style = filled时, 节点填充色为边颜色。
fontcolor 节点内容的文本颜色。
编译dot文件
dot -T[可选] [dot文件名] -o [生成的目标文件名]
dot -Tsvg test.dot -o test.svg 会生成矢量图形
查看
上面两个不同文件对应的产生的图形。
可参考
http://www.cnblogs.com/sld666666/archive/2010/06/25/1765510.html