# HG changeset patch # User alpar # Date 1105689677 0 # Node ID 81addddaf3d3dd45ce34f9a50c0e3f5862a5e4c5 # Parent ce8466be7683d719e926456d295989324122dec1 Serious buxfig in findEdge() diff -r ce8466be7683 -r 81addddaf3d3 src/lemon/graph_utils.h --- a/src/lemon/graph_utils.h Thu Jan 13 18:46:00 2005 +0000 +++ b/src/lemon/graph_utils.h Fri Jan 14 08:01:17 2005 +0000 @@ -163,9 +163,10 @@ typename Graph::Edge prev = INVALID) { typename Graph::OutEdgeIt e(g,prev); - if(prev==INVALID) g.first(e,u); + // if(prev==INVALID) g.first(e,u); + if(prev==INVALID) e=typename Graph::OutEdgeIt(g,u); else ++e; - while(e!=INVALID && g.source(e)!=v) ++e; + while(e!=INVALID && g.target(e)!=v) ++e; return e; }