Boost logo

Boost Users :

Subject: Re: [Boost-users] How to use graph properties
From: Paolo Bolzoni (paolo.bolzoni.brown_at_[hidden])
Date: 2014-02-11 04:29:05


I read about bundled properties minutes after sending the
email... They do seem simpler and equally effective.

On Tue, Feb 11, 2014 at 8:23 AM, Adam Romanek <romanek.adam_at_[hidden]> wrote:
> 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
>
>
> 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
>
> [1] http://www.boost.org/doc/libs/1_55_0/libs/graph/doc/bundles.html
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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