diff -r b406ed1c8603 -r 1861d5dcf312 lemon/dfs.h --- a/lemon/dfs.h Tue Sep 21 06:32:07 2010 +0200 +++ b/lemon/dfs.h Wed Sep 22 09:32:53 2010 +0200 @@ -565,7 +565,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(); }