Nethence NSBH Laboratory Webmail Your IP BBDock
New Software Burns in Hell print | donate | html/css | terms of use
Home | Unix | Windows | Oracle | Obsolete | Hardware | Mechanics | Scripts | Configs | Private

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-2014 Pierre-Philipp Braun