Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-25 13:51:11


----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>

> David Abrahams wrote:

> It's not that simple. Since labels is not internal property (and it makes
> little sense), I can't just specialize out_edges. I'd need to create a new
> graph type which ctor will take labels, or I'll need to create a new type
of
> graph, which will have labels as internal property and make a copy of the
> original. Hmm... that's too complicated...

You could just make a new graph type which is a wrapper over your graph +
the label property map. I did something similar recently. It was only
difficult because I had such a hard time navigating the BGL docs, but I
think my example might help you. I'll send/post something if there's
interested.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk