this is obsolete doc -- see http://doc.nethence.com/ instead

Graphviz examples 

 

 

Requirements 

On Redhat systems, 

cd /etc/yum.repos.d
wget http://www.graphviz.org/graphviz-rhel.repo
yum list available 'graphviz*'
yum install graphviz

 

 

Usage 

Create a folder and a dot file, 

cd ~/
mkdir dot/
cd dot/
vi check.dot

 

For a directional graph, 

digraph G {
        Director -> "Human Resources";
        Director -> IT;
}

generate the graph, 

dot -Tpng check.dot -o check.png

 

For a non-directional graph, 

graph G {
        Director -- "Human Resources";
        Director -- IT;
}

 

Note. use labels, 

graph G {
        D [label="Director"]
        H [label="Human Resources"]

 

        D -- H;
        D -- IT;
}

 

 

References 

http://linuxdevcenter.com/pub/a/linux/2004/05/06/graphviz_dot.html 

http://edutechwiki.unige.ch/en/Graphviz 

http://www.graphviz.org/mywiki/FAQ 

http://www.orient-lodge.com/node/3408 

http://linuxdevcenter.com/pub/a/linux/2004/05/06/graphviz_dot.html?page=2