Boost logo

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 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:

There's even an example in libs/graph/example/vertex-name-property.cpp


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at