lemon/bfs.h
changeset 1651 e40c41eae31f
parent 1624 61cc647dac99
child 1665 fdeb961110ac
equal deleted inserted replaced
3:9d1e4f83fc99 4:e63085c923de
   696     ///of the shortest path tree,
   696     ///of the shortest path tree,
   697     ///i.e. it returns the last edge of a shortest path from the root(s) to \c
   697     ///i.e. it returns the last edge of a shortest path from the root(s) to \c
   698     ///v. It is \ref INVALID
   698     ///v. It is \ref INVALID
   699     ///if \c v is unreachable from the root(s) or \c v is a root. The
   699     ///if \c v is unreachable from the root(s) or \c v is a root. The
   700     ///shortest path tree used here is equal to the shortest path tree used in
   700     ///shortest path tree used here is equal to the shortest path tree used in
   701     ///\ref predNode(Node v).
   701     ///\ref predNode().
   702     ///\pre Either \ref run() or \ref start() must be called before using
   702     ///\pre Either \ref run() or \ref start() must be called before using
   703     ///this function.
   703     ///this function.
   704     ///\todo predEdge could be a better name.
   704     ///\todo predEdge could be a better name.
   705     Edge pred(Node v) const { return (*_pred)[v];}
   705     Edge pred(Node v) const { return (*_pred)[v];}
   706 
   706 
   711     ///i.e. it returns the last but one node from a shortest path from the
   711     ///i.e. it returns the last but one node from a shortest path from the
   712     ///root(a) to \c /v.
   712     ///root(a) to \c /v.
   713     ///It is INVALID if \c v is unreachable from the root(s) or
   713     ///It is INVALID if \c v is unreachable from the root(s) or
   714     ///if \c v itself a root.
   714     ///if \c v itself a root.
   715     ///The shortest path tree used here is equal to the shortest path
   715     ///The shortest path tree used here is equal to the shortest path
   716     ///tree used in \ref pred(Node v).
   716     ///tree used in \ref pred().
   717     ///\pre Either \ref run() or \ref start() must be called before
   717     ///\pre Either \ref run() or \ref start() must be called before
   718     ///using this function.
   718     ///using this function.
   719     Node predNode(Node v) const { return (*_pred)[v]==INVALID ? INVALID:
   719     Node predNode(Node v) const { return (*_pred)[v]==INVALID ? INVALID:
   720 				  G->source((*_pred)[v]); }
   720 				  G->source((*_pred)[v]); }
   721     
   721