|
Boost Users : |
From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-08-01 09:35:05
On Jul 30, 2004, at 2:42 AM, Daniele Carlucci wrote:
> Hi everybody,
> I wanna to print a graph but instead the id I want to print the name
> of the same. How can I make?
> I have token the list of the nodes from a list i. In i.name I have the
> name of the node.
> The code that I used to initialize the graph is:
You just need a property map that associates a name with each vertex:
http://www.boost.org/libs/graph/doc/using_property_maps.html
There's even an example in libs/graph/example/vertex-name-property.cpp
Doug
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