Boost logo

Boost Users :

From: Marc Boyer (Marc.Boyer_at_[hidden])
Date: 2007-03-15 12:59:28


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net