How to begin with Graphvis?
Submitted by tan3long on Tue, 03/20/2012 - 04:18
Hi buddies,
I am a fresher in GraphVis. Any information about how to begin with GraphVis is welcome! :)
Recent comments
- No, 2.28 is a release
1 day 9 hours ago - Ok finaly i have time to test
1 day 15 hours ago - Well, there should be an
4 days 2 hours ago - Sorry, yes, the parallel edge
4 days 2 hours ago - I want more and more ...
6 days 3 hours ago - Graphviz provides a small
6 days 14 hours ago - Actually, we have been
1 week 11 hours ago - What machine are you running
1 week 1 day ago - Graphviz is a collection of
1 week 1 day ago - Thanks. I tried running it
1 week 2 days ago

How to begin with Graphvis?
Tutorials and examples can also be very helpful. See http://www.graphviz.org/pdf/dotguide.pdf and http://www.graphviz.org/Gallery.php.
beginning with graphvis
I basically did it by trial and error.
I'm no expert - but try experimentation to achieve something useful for you.
Here is my example organisation chart:
digraph graphname {
Kate [shape=record, label = "{ Kate | Top dog}" style=filled fillcolor =cyan3]
Jason [shape=record, label = "{ Jason | Under dog}" style=filled fillcolor =cyan3]
Percival [shape=record, label = "{ Percival | Hot dog}" style=filled fillcolor =cyan3]
Persephone [shape=record, label = "{ Persephone | Good dog}" style=filled fillcolor =gold]
Bluebeard [shape=record, label = "{ Bluebeard | Scurvey dog}" style=filled fillcolor = darkOliveGreen]
Geoff [shape=record, label = "{ Geoff | Old dog}" style=filled fillcolor =cyan3]
Kate -> Jason
Jason -> Percival
Jason -> Persephone
Jason -> Bluebeard
Percival -> Geoff
Percival -> Mike
Percival -> Jeff
Percival -> Florian
Persephone -> Rajesh
Persephone -> Pierre
Persephone -> Peter
Persephone -> Paul
Persephone -> Mary
Geoff -> Jason [style=dotted]
Bluebeard -> SmallChap
Bluebeard -> BigChap
Bluebeard -> MediumChap
}
Put this in a file called 'example.gv'
Run:
dot -Tpng example.gv > example.png
Then try fiddling about with it.
Have fun