COIN-OR::LEMON - Graph Library

Changeset 1079:81addddaf3d3 in lemon-0.x for src


Ignore:
Timestamp:
01/14/05 09:01:17 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1475
Message:

Serious buxfig in findEdge()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/graph_utils.h

    r1053 r1079  
    164164  {
    165165    typename Graph::OutEdgeIt e(g,prev);
    166     if(prev==INVALID) g.first(e,u);
     166    //    if(prev==INVALID) g.first(e,u);
     167    if(prev==INVALID) e=typename Graph::OutEdgeIt(g,u);
    167168    else ++e;
    168     while(e!=INVALID && g.source(e)!=v) ++e;
     169    while(e!=INVALID && g.target(e)!=v) ++e;
    169170    return e;
    170171  }
Note: See TracChangeset for help on using the changeset viewer.