Boost logo

Boost Users :

Subject: Re: [Boost-users] How to use graph properties
From: Adam Romanek (romanek.adam_at_[hidden])
Date: 2014-02-11 02:23:49

On 02/10/2014 06:02 PM, Paolo Bolzoni wrote:
> Dear list,
> I need to keep track of two special vertices in my graph, So
> I thought to attach two vertex_descriptor as graph
> properties so have easy access any moment. Properties work
> fine for edges or vertices, but I cannot make them work for
> the graph.
> In the bottom is the C++ code. The graph has the two properties,
> now how I cat get and put them? This code does not work and
> the error messages are impossible to read for me.
> Otherwise that is the way to keep graph-wise properties?
> The code compiles removing the two puts, so I assume the
> error is there.
> Yours sincerely,
> Paolo


have you tried using bundled properties? They simplify things pretty
much when it comes to attaching properties to vertices, edges or the
graph itself. See [1] for a tutorial on using them.

Best regards,
Adam Romanek


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