COIN-OR::LEMON - Graph Library

Changeset 370:00c8843d491d in lemon-main


Ignore:
Timestamp:
11/06/08 23:12:57 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
371:164fe3abc024, 373:5a3d689ea770
Phase:
public
Message:

Critical bug fix in SmartDigraph::split() #170

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r313 r370  
    306306      nodes[b._id].first_out=nodes[n._id].first_out;
    307307      nodes[n._id].first_out=-1;
    308       for(int i=nodes[b._id].first_out;i!=-1;i++) arcs[i].source=b._id;
     308      for(int i=nodes[b._id].first_out; i!=-1; i=arcs[i].next_out) {
     309        arcs[i].source=b._id;
     310      }
    309311      if(connect) addArc(n,b);
    310312      return b;
Note: See TracChangeset for help on using the changeset viewer.