Boost logo

Boost Users :

From: Janusz Piwowarski (jpiw_at_[hidden])
Date: 2003-08-01 08:46:06


Hi
>
> Here is my code:
> std::vector<Vertex> p(boost::num_vertices(g));
> boost::graph_traits<GraphvizGraph>::vertices_size_type
> d[num_vertices(g)];
>
> std::fill_n(d, num_vertices (g), 0);
> breadth_first_search (g, u, visitor(make_bfs_visitor
> (std::make_pair(record_predecessors(&p[0],on_examine_edge()),record_d
>
>
> istanc=
> es(&d[0],on_examine_edge()))))
> );
>
You are using on_examine_edge event, use on_tree_edge instead.
 
Regards

-- 
Janusz Piwowarski 

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