Hi there! I'm new to Boost (and also to this mailing list). I'm using depth_first_search and it's vital for me to be able to specify the root vertex (4th argument), and that means also specifying the Color Map, which I don't care too much about. It'd be great to have a default color map but I'm a newbie and I didn't found anything in the docs. My initial options were:
a) Using sth like a "default_color_map" class. I ignore if there is such thing.
b) Creating a property map out of a vector, something like "vector_property_map
Is there any way to easily instantiate a Color Map? I'd post my code, but I have 6 or 7 versions none of which work. Any help will be much appreciated. Thanks ahead!
Yes. First, I would recommend using the named parameter version of the call
since it lets you omit optional parameters. If you really want to pass an
exterior color map, you could do it this like this.
// Set up an external property, initialized to white
// by default.
vector
participants (2)
-
Andrew Sutton
-
pablo barrio lópez-cortijo