COIN-OR::LEMON - Graph Library

Changeset 382:00c8843d491d in lemon for lemon/smart_graph.h


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r313 r382  
    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.