15 Mar
2007
15 Mar
'07
4:59 p.m.
Dear all, I am a new boost::graph user, and I have a pb that should be very common, but I do not find any simple way to do it. I have a graph, with, in a file, some vertex name, and, in another file, edge described from vertex name, something like -- nodes.txt -- AAA BBB CCC -- edges.txt -- AAA BBB xx AAA CCC yy CCC AAA zz With the book, it is quite easy to set the vertex names in the graph (with an internal property and the name_map). What seems not easy to me is how to add the edges ? I add to find a way to get a vertex from its name, and the map only do the opposite. Did I have to build a tempory reverse map ? Best regards, Marc Boyer