Search code examples
c++boostboost-graph

Where Is color_map defined in BGL?


Example code from BGL:

breadth_first_search(g, vertex(s, g), color_map(get(&VertexProps::color, g)).visitor(vis));

What is color_map, where is it defined? And where is it documented?


Solution

  • It's defined as a named parameter in http://www.boost.org/doc/libs/1_46_0/boost/graph/named_function_params.hpp