# HG changeset patch # User deba # Date 1145976530 0 # Node ID 2c5f81b352692490f281d79533dba8f1e682344d # Parent 9535436aaa9f8ed0fc872440de583484396b9d07 Bug fix in findUEdge diff -r 9535436aaa9f -r 2c5f81b35269 lemon/graph_utils.h --- a/lemon/graph_utils.h Tue Apr 18 22:59:33 2006 +0000 +++ b/lemon/graph_utils.h Tue Apr 25 14:48:50 2006 +0000 @@ -444,7 +444,7 @@ b = g.source(e) == u; g.nextInc(e, b); } - while (e != INVALID && g.target(e) != v) { + while (e != INVALID && (b ? g.target(e) : g.source(e)) != v) { g.nextInc(e, b); } } else {