Boost Graph Library: possible to combine Bundled Properties with Interior Properties?
问题 I'm using this typedef for my BGL graph type, Graph , using struct VertexProperty as a bundled vertex property: struct VertexProperty { BeamType beam; size_t index; }; typedef typename boost::adjacency_list< boost::listS, boost::listS, boost::bidirectionalS, VertexProperty > Graph; Before a recent change in my project, I'd been using the VertexProperty::index to construct a two_bit_color_map for use with depth_first_search : auto colorMap = boost::make_two_bit_color_map( boost::num_vertices