I cannot figure out how to create a color map for depth first search, i`m using bundled properties and the following type as graph.
adjacency_list<listS,setS,bidirectionalS,WorldNode> world_graph_t;
 
right now i`m trying to make it like this, but i get 50 errors and cannot deduce what my error is.
 
template<class VisitorT>
THOR_INLINE void DepthFirstSearch(const VisitorT& vis, const vertex_descriptor& start)
{
using namespace boost;
std::vector<default_color_type> color_vec( num_vertices(graph) );
depth_first_search(graph, visitor(vis), color_map(make_iterator_property_map(color_vec.begin(),get(vertex_color,graph))), start);
}
 



Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту!