diff -r 66aafc8c62d6 -r b7ed95cd94a3 lemon/dfs.h --- a/lemon/dfs.h Tue Sep 21 06:19:04 2010 +0200 +++ b/lemon/dfs.h Wed Sep 22 09:24:07 2010 +0200 @@ -558,7 +558,7 @@ ///added with addSource() before using this function. void start(Node t) { - while ( !emptyQueue() && G->target(_stack[_stack_head])!=t ) + while ( !emptyQueue() && !(*_reached)[t] ) processNextArc(); } @@ -1512,7 +1512,7 @@ /// \pre init() must be called and a root node should be added /// with addSource() before using this function. void start(Node t) { - while ( !emptyQueue() && _digraph->target(_stack[_stack_head]) != t ) + while ( !emptyQueue() && !(*_reached)[t] ) processNextArc(); }