NEW ANSWER
Its a dube, see
- How to print a boost graph in graphviz with one of the properties displayed?
- boost graph library - minimal example of vertex colors and graphviz output
- http://www.boost.org/doc/libs/1_54_0/libs/graph/doc/write-graphviz.html
- How to print a graph in graphviz with multiple properties displayed
- drawing custom BGL graph with graphviz
- C++ Boost Graph Library: outputting custom vertex properties
OLD ANSWER:
There are many resources online which specifies how to draw advanced graphs using Graphviz. Here are some which I have found useful in the past:
- www.graphviz.org/pdf/dotguide.pdf
- www.graphviz.org/content/attrs
- www.graphviz.org/content/output-formats
- www.graphviz.org/doc/info/shapes.html
- http://graphviz-dev.appspot.com/
The last link is an online render, very useful if you dont have graphviz on your machine. For your specific question here's a simple example using colored edges and labels:
Dot:
graph{
0 [label = "Prof Nachiket", color=blue shape=ellipse ];
1 [label = "Nick", color = red shape=Mdiamond];
2 [label = "Lam", color = green shape=diamond];
0 -- 1[label = "Supervisor" color=pink];
1 -- 2[label = "Co-worker" color=red penwidth=2];
}
Img: