diff -r 3915867b6975 -r 49045f2d28d4 lemon/bfs.h --- a/lemon/bfs.h Fri Nov 04 13:53:22 2005 +0000 +++ b/lemon/bfs.h Fri Nov 04 14:48:10 2005 +0000 @@ -620,8 +620,8 @@ if(reached(t)) { p.clear(); typename P::Builder b(p); - for(b.setStartNode(t);pred(t)!=INVALID;t=predNode(t)) - b.pushFront(pred(t)); + for(b.setStartNode(t);predEdge(t)!=INVALID;t=predNode(t)) + b.pushFront(predEdge(t)); b.commit(); return true; } @@ -648,7 +648,7 @@ ///\pre Either \ref run() or \ref start() must be called before using ///this function. ///\todo predEdge could be a better name. - Edge pred(Node v) const { return (*_pred)[v];} + Edge predEdge(Node v) const { return (*_pred)[v];} ///Returns the 'previous node' of the shortest path tree. @@ -659,7 +659,7 @@ ///It is INVALID if \c v is unreachable from the root(s) or ///if \c v itself a root. ///The shortest path tree used here is equal to the shortest path - ///tree used in \ref pred(). + ///tree used in \ref predEdge(). ///\pre Either \ref run() or \ref start() must be called before ///using this function. Node predNode(Node v) const { return (*_pred)[v]==INVALID ? INVALID: