lemon/dfs.h
branch1.1
changeset 1009 c85f53572941
parent 631 33c6b6e755cd
parent 1007 e24922c56bc2
child 1081 f1398882a928
child 1107 2b6bffe0e7e8
child 1125 b873350e6258
     1.1 --- a/lemon/dfs.h	Tue Sep 21 06:28:35 2010 +0200
     1.2 +++ b/lemon/dfs.h	Wed Sep 22 09:26:01 2010 +0200
     1.3 @@ -557,7 +557,7 @@
     1.4      ///added with addSource() before using this function.
     1.5      void start(Node t)
     1.6      {
     1.7 -      while ( !emptyQueue() && G->target(_stack[_stack_head])!=t )
     1.8 +      while ( !emptyQueue() && !(*_reached)[t] )
     1.9          processNextArc();
    1.10      }
    1.11  
    1.12 @@ -1509,7 +1509,7 @@
    1.13      /// \pre init() must be called and a root node should be added
    1.14      /// with addSource() before using this function.
    1.15      void start(Node t) {
    1.16 -      while ( !emptyQueue() && _digraph->target(_stack[_stack_head]) != t )
    1.17 +      while ( !emptyQueue() && !(*_reached)[t] )
    1.18          processNextArc();
    1.19      }
    1.20