Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-06-14 08:58:49

On Jun 13, 2005, at 3:40 PM, martin f krafft wrote:

> also sprach martin f krafft <madduck_at_[hidden]> [2005.06.13.1249
> +0200]:
>> I would like my nodes and edges to have behaviours. Bundled
>> properties -- the method to attach struct instances to nodes and
>> edges -- seems like the way to go. However, if that is the
>> suggested method, then "bundled properties" is somewhat of
>> a misnomer.
> ... and even if: how do you get the property object from am edge or
> vertex descriptor? If g is an adjacency list with Edge and Node
> structs as edge and vertex property bundles, and ei/vi are
> edge/vertex iterators respectively, then the following allows me to
> call Edge/Node::fn():
> g[*ei].fn()
> g[*vi].fn()
> This is rather awkward. Is there a better way?

Not really. If you can come up with a more natural syntax to express
what you'd like to do, we can try to incorporate it into the BGL.


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