# HG changeset patch # User alpar # Date 1105914454 0 # Node ID e9eae612f01ca7270d38ae9bf1fa3759bd388295 # Parent c0ad2673b11f7d2a133f4ee1616781fff1377948 findEdge bugfix. diff -r c0ad2673b11f -r e9eae612f01c src/lemon/smart_graph.h --- a/src/lemon/smart_graph.h Fri Jan 14 13:17:16 2005 +0000 +++ b/src/lemon/smart_graph.h Sun Jan 16 22:27:34 2005 +0000 @@ -213,7 +213,7 @@ Edge _findEdge(Node u,Node v, Edge prev = INVALID) { int e = (prev.n==-1)? nodes[u.n].first_out : edges[prev.n].next_out; - while(e!=-1 && edges[e].source!=v.n) e = edges[e].next_out; + while(e!=-1 && edges[e].target!=v.n) e = edges[e].next_out; prev.n=e; return prev; }