diff -r 2eebc8f7dca5 -r 17e36e175725 lemon/dfs.h --- a/lemon/dfs.h Tue Nov 01 08:24:30 2011 +0100 +++ b/lemon/dfs.h Tue Dec 20 17:35:45 2011 +0100 @@ -557,7 +557,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(); } @@ -1509,7 +1509,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(); }