diff -r bb871cb8ac06 -r e24922c56bc2 lemon/dfs.h --- a/lemon/dfs.h Tue Jun 22 15:39:26 2010 +0200 +++ b/lemon/dfs.h Wed Sep 22 08:53:09 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(); } @@ -1511,7 +1511,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(); }