On Jun 13, 2005, at 3:40 PM, martin f krafft wrote:
also sprach martin f krafft
[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. Doug