# HG changeset patch # User Alpar Juttner # Date 1226042317 0 # Node ID 164fe3abc0249a97d773f6cfa7fd0d3c623b88a9 # Parent 02bc940cbb0e42168ae90b3d067d1f128845eacc# Parent 00c8843d491d53848439decbb302abdb8525f173 Merge diff -r 02bc940cbb0e -r 164fe3abc024 lemon/smart_graph.h --- a/lemon/smart_graph.h Fri Nov 07 06:36:12 2008 +0000 +++ b/lemon/smart_graph.h Fri Nov 07 07:18:37 2008 +0000 @@ -305,7 +305,9 @@ Node b = addNode(); nodes[b._id].first_out=nodes[n._id].first_out; nodes[n._id].first_out=-1; - for(int i=nodes[b._id].first_out;i!=-1;i++) arcs[i].source=b._id; + for(int i=nodes[b._id].first_out; i!=-1; i=arcs[i].next_out) { + arcs[i].source=b._id; + } if(connect) addArc(n,b); return b; }