Graphviz is a drawing tool developed by several of the famous Bell Labs, which provides the idea of "what you Want", and uses the dot language to write scripts and draw graphs that are easy to understand. Graphviz Installation:
Graphviz has a variety of installation methods, source code and distribution package.
Current most new source download: http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz
Other versions download link references: http://www.graphviz.org/pub/graphviz/stable/SOURCES/
Distribution Package:
Redhat and centos:http://www.graphviz.org/download_linux_rhel.php
fedora:http://www.graphviz.org/download_linux_fedora.php
ubuntu:http://www.graphviz.org/download_linux_ubuntu.php
Yum
Yum list ' graphviz* ' view installed Graphviz packs
Yum Install ' graphviz* ' installation Graphviz
Here are a few simple apps to start with.
Graphviz instance:
digraph g{
node [shape = record,height=.1//I define my following style;
Node0[label = "<f0> |<f1> g|<f2>"];
I am a node, I have three attributes, the second name is G, the other two are empty
Node1[label = "<f0> |<f1> e|<f2>"];
Node2[label = "<f0> |<f1> b|<f2>"];
Node3[label = "<f0> |<f1> f|<f2>"];
Node4[label = "<f0> |<f1> r|<f2>"];
Node5[label = "<f0> |<f1> h|<f2>"];
Node6[label = "<f0> |<f1> y|<f2>"];
Node7[label = "<f0> |<f1> a|<f2>"];
Node8[label = "<f0> |<f1> c|<f2>"];
" Node0 ": f2->" node4 ": F1;
My third attribute is attached to the second property
"Node0" of Node4: F0-> "Node1": F1;
Node1 ": f0->" Node2 ": F1;
" Node1 ": f2->" Node3 ": F1;
" Node2 ": f2->" Node8 ": F1;
" Node2 ": f0->" Node7 ": F1;
" Node4 ": f2->" Node6 ": F1;
" Node4 ": f0->" NODE5 ": F1;
}
Style as shown:
More graphic examples and scripts please refer to: http://www.graphviz.org/Gallery.php.