lemon/dijkstra.h
changeset 2482 217123f59d7e
parent 2443 14abfa02bf42
child 2537 4a2091b1796a
equal deleted inserted replaced
33:20b2210802a9 34:e35e3e519d5f
   663     ///with addSource() before using this function.
   663     ///with addSource() before using this function.
   664     ///
   664     ///
   665     ///\param nm must be a bool (or convertible) node map. The algorithm
   665     ///\param nm must be a bool (or convertible) node map. The algorithm
   666     ///will stop when it reaches a node \c v with <tt>nm[v]</tt> true.
   666     ///will stop when it reaches a node \c v with <tt>nm[v]</tt> true.
   667     ///
   667     ///
   668     ///\return The reached node \c v with <tt>nm[v]<\tt> true or
   668     ///\return The reached node \c v with <tt>nm[v]</tt> true or
   669     ///\c INVALID if no such node was found.
   669     ///\c INVALID if no such node was found.
   670     template<class NodeBoolMap>
   670     template<class NodeBoolMap>
   671     Node start(const NodeBoolMap &nm)
   671     Node start(const NodeBoolMap &nm)
   672     {
   672     {
   673       while ( !_heap->empty() && !nm[_heap->top()] ) processNextNode();
   673       while ( !_heap->empty() && !nm[_heap->top()] ) processNextNode();