Hi! I would like to use the breadth breadth_first_search with simultaneaously 2 different visitors: -the distance recorder one -one of mine I was thinking about a code like: class bfs_my_visitor:public default_bfs_visitor { ... public: bfs_stop_visitor(...) {} template < typename Vertex, typename Graph > void finish_vertex(Vertex u, const Graph & g) const { ... } }; use in: bfs_my_visitor vis(...); breadth_first_search (g,s, visitor(make_bfs_visitor(std::make_pair(record_distances(&d[0],on_tree_edge()), vis ))); But it doesn't work, can you tell the way to combine thoses visitors in the call of breadth_first_search. regards Jérémie leguay Lip6 - Paris ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
participants (1)
-
Jérémie Leguay