Hello,
when you are inside the visitor the () operator takes two arguments, a
vertex descriptor and a reference to the graph.
So I guess you can use this graph variable to access the property map
for color.
For example I have the following visitor:
struct SendMsg : public base_visitor <SendMsg>
{
typedef on_finish_vertex event_filter;
/* here what the visitor must do... */
template
I have a need to have a graph visitor algorithm similar to depth first search. The only difference is that if upon running discover_vertex the intended operation to be done on the vertex is not done I want the graph color value for this position to still be white.
The reason is that the graph I am using the depth first search is a directed graph with no loops in it. A vertex might have two or more vertices providing information. If all the information is not there I want the visitor to try again.
What do I have to do to gain access to the color map inside the visitor when I am in discover_vertex?
Stephen
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users