
27 Oct
2004
27 Oct
'04
7:49 a.m.
I am having problem with passing a color map to depth_first_visit algorithm. I have defined my graph as follows: typedef adjacency_list < vecS, vecS, directedS, property<vertex_color_t, default_color_type, property<vertex_count_t, int> > > graph_t; I have defined a vector of default_color_type as follows: std::vector<default_color_type> colors(num_vertices(g)); I am calling dfs visit as follows: depth_first_visit(graph, start_vertex, visitor(vis_count), colors.begin( )); But while compiling I am getting error. Is there any easy way of passing color maps to depth_first_visit ? Regards, Manas.