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<default_color_type>". I tried and it didn't work.
c) Including a property in my graph called "color" of type "default_color_type", and creating a property map out of it. Didn't work either. Actually, I get an error when trying to include the property with that type (compiles if the property is an int).
d) Just copying the color map that the algorithm uses when called without the color map argument. Hoping to find out how the BGL code works was simply unrealistic so I abandoned the idea.
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!
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
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!
I would recommend using the named parameter version of the call since it lets you omit optional parameters.
// Calling DFS with named parametersdepth_first_search(*g, visitor(actions), root_vertex(source));