Boost logo

Boost Users :

From: Janusz Piwowarski (jpiw_at_[hidden])
Date: 2006-03-09 00:49:46


Dmitry wrote:
> Hi there!
> Current implementation calls
> vis.discover_vertex(s, g);
> at this point, the same function being called for all others
> discovered vertices. I have one small problem wich could be nicely
> solved with such special handler and I believe that there are others
> when such handler could be usefull.
> Any suggestings why things is going exacly in this way?

You know the source vertex when you call bfs, don't you? Is it not enough?
If not, you can use the simple boolean flag to determine whether the vertex
is first or not.

-- 
Regards,
Janusz 

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