lemon/smart_graph.h
branch1.0
changeset 336 cada82273723
parent 317 64f8f7cc6168
child 337 5a3d689ea770
     1.1 --- a/lemon/smart_graph.h	Sun Oct 12 20:05:43 2008 +0100
     1.2 +++ b/lemon/smart_graph.h	Fri Nov 07 07:10:05 2008 +0000
     1.3 @@ -305,7 +305,9 @@
     1.4        Node b = addNode();
     1.5        nodes[b._id].first_out=nodes[n._id].first_out;
     1.6        nodes[n._id].first_out=-1;
     1.7 -      for(int i=nodes[b._id].first_out;i!=-1;i++) arcs[i].source=b._id;
     1.8 +      for(int i=nodes[b._id].first_out; i!=-1; i=arcs[i].next_out) {
     1.9 +        arcs[i].source=b._id;
    1.10 +      }
    1.11        if(connect) addArc(n,b);
    1.12        return b;
    1.13      }