COIN-OR::LEMON - Graph Library

Changeset 335:00c8843d491d in lemon-1.0


Ignore:
Timestamp:
11/06/08 23:12:57 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
336:cada82273723, 337:5a3d689ea770
Phase:
public
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r317 r335  
    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.