Graphviz quick reference

Graphviz quick reference

Graphviz quick reference

Sample

Simple

1: digraph G {
2: size ="4,4";
3: main [shape=box]; /* this is a comment */
4: main -> parse [weight=8];
5: parse -> execute;
6: main -> init [style=dotted];
7: main -> cleanup;
8: execute -> { make_string; printf}
9: init -> make_string;
10: edge [color=red]; // so is this
11: main -> printf [style=bold,label="100 times"];
12: make_string [label="make a\nstring"];
13: node [shape=box,style=filled,color=".7 .3 1.0"];
14: execute -> compare;
15: }

Subgraph

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];
}

Node, Edge and Graph Attributes

http://www.graphviz.org/doc/info/attrs.html

Refrence 1@Page31.

BTW, Adobe support open the pdf on the specified page 2, but the chrome doesn't support this feature.

I have another try when I post this blog, the page parameter works. So COOL!!!


Post by: Jalen Wang (转载请注明出处)

posted on 2013-02-17 09:12  Jalen Wang  阅读(238)  评论(0编辑  收藏  举报

导航