官方教程文档:http://www.graphviz.org/pdf/dotguide.pdf
一:在文档里抄一个简单的例子
/home/tong/Src/copyright/onescorpion/chimpanzee/doc [git::master *] [tong@T7] [15:36] > cat test.gv digraph G { subgraph cluster0 { node [style=filled,color=white]; style=filled; color=lightgrey; a0 -> a1 -> a2 -> a3; label = "process #1"; } subgraph cluster1 { node [style=filled]; b0 -> b1 -> b2 -> b3; label = "process #2"; color=blue } start -> a0; start -> b0; a1 -> b3; b2 -> a3; a3 -> a0; a3 -> end; b3 -> end; start [shape=Mdiamond]; end [shape=Msquare]; }