author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 07 Nov 2008 07:18:37 +0000 | |
changeset 371 | 164fe3abc024 |
parent 369 | 02bc940cbb0e |
parent 370 | 00c8843d491d |
child 372 | 7b6466ed488a |
1.1 --- a/lemon/smart_graph.h Fri Nov 07 06:36:12 2008 +0000 1.2 +++ b/lemon/smart_graph.h Fri Nov 07 07:18:37 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 }