This class is an adapter that converts a list of EventVisitors (constructed using
std::pair) into a BFSVisitor.
Example
This is an excerpt from examples/bfs.cpp where three
event-visitors are combined to make a BFS visitor. The functions
boost::record_distances, boost::record_predecessors,
and copy_graph are all functions that create an event
visitor.
// Construct graph G and obtain the source vertex s ...
boost::breadth_first_search(G, s,
boost::make_bfs_visitor(
std::make_pair(boost::record_distances(d, boost::on_tree_edge()),
std::make_pair(boost::record_predecessors(p.begin(),
boost::on_tree_edge()),
copy_graph(G_copy, boost::on_examine_edge())))) );
This class implements all of the member functions required by BFSVisitor. In each function the
appropriate event is dispatched to the EventVisitor in the EventVisitorList.