Nethence Next Door Labs Laboratory Webmail Your IP BBDock
Next Door Laboratories print | donate | html/css | terms of use
Home | Unix | Windows | Oracle | Hardware | Mechanics | Scripts | Configs

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



Last update: Oct 07, 2011
Copyright © 2007-2013 Pierre-Philipp Braun