diff -r 6151a291af96 -r cada82273723 lemon/smart_graph.h --- a/lemon/smart_graph.h Sun Oct 12 20:05:43 2008 +0100 +++ b/lemon/smart_graph.h Fri Nov 07 07:10:05 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; }