lemon/dfs.h
changeset 937 17e36e175725
parent 584 33c6b6e755cd
parent 899 e24922c56bc2
child 942 2b6bffe0e7e8
child 953 b873350e6258
     1.1 --- a/lemon/dfs.h	Tue Nov 01 08:24:30 2011 +0100
     1.2 +++ b/lemon/dfs.h	Tue Dec 20 17:35:45 2011 +0100
     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