Serious buxfig in findEdge()
authoralpar
Fri, 14 Jan 2005 08:01:17 +0000
changeset 107981addddaf3d3
parent 1078 ce8466be7683
child 1080 568ce2be7fe0
Serious buxfig in findEdge()
src/lemon/graph_utils.h
     1.1 --- a/src/lemon/graph_utils.h	Thu Jan 13 18:46:00 2005 +0000
     1.2 +++ b/src/lemon/graph_utils.h	Fri Jan 14 08:01:17 2005 +0000
     1.3 @@ -163,9 +163,10 @@
     1.4  		typename Graph::Edge prev = INVALID) 
     1.5    {
     1.6      typename Graph::OutEdgeIt e(g,prev);
     1.7 -    if(prev==INVALID) g.first(e,u);
     1.8 +    //    if(prev==INVALID) g.first(e,u);
     1.9 +    if(prev==INVALID) e=typename Graph::OutEdgeIt(g,u);
    1.10      else ++e;
    1.11 -    while(e!=INVALID && g.source(e)!=v) ++e;
    1.12 +    while(e!=INVALID && g.target(e)!=v) ++e;
    1.13      return e;
    1.14    }
    1.15