1.1 --- a/lemon/dfs.h Tue Sep 21 06:32:07 2010 +0200
1.2 +++ b/lemon/dfs.h Wed Sep 22 09:32:53 2010 +0200
1.3 @@ -565,7 +565,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 @@ -1512,7 +1512,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