everyone. I have been using Boost Graph Library but it's quite difficult to me. Recently, I have tried to draw the following graph (I used .dot file to display coz I don;t have enough reputation to attach a picture, sorry for any inconvenience caused)
enter code here
graph{
0[label = "Prof Nachiket", color = blue];
1[label = "Nick", color = red];
2[label = "Lam", color = green];
0 -- 1[label = "Supervisor"];
0 -- 1[label = "Supervisor"];
1 -- 2[label = "Co-worker" ];
}
And then turn it into a picture with Graphviz. However, I got no idea how to add information such as label, color into edges of graph. In other words, I have a little or no idea how to draw above graph by using Boost Graph Library. Could anyone help me out? Thanks a lot
Best Regards
Nick Ng