Boost logo

Boost Users :

From: Jérémie Leguay (njphoto21_at_[hidden])
Date: 2003-08-14 07:13:58


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net