Boost logo

Boost :

From: Manas Singh (manassingh_at_[hidden])
Date: 2004-10-27 02:49:06

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 ?


Boost list run by bdawes at, gregod at, cpdaniel at, john at