author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 07 Nov 2008 07:10:05 +0000 | |
branch | 1.0 |
changeset 336 | cada82273723 |
parent 334 | 6151a291af96 |
parent 335 | 00c8843d491d |
child 339 | a0b5131b958e |
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 }