[Lemon-commits] Peter Kovacs: Critical bug fix in SmartDigraph::...
Lemon HG
hg at lemon.cs.elte.hu
Fri Nov 7 08:23:54 CET 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/00c8843d491d
changeset: 382:00c8843d491d
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Thu Nov 06 23:12:57 2008 +0100
description:
Critical bug fix in SmartDigraph::split() #170
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
lemon/smart_graph.h | 4 +++-
diffs (14 lines):
diff -r 6dbd5184c6a9 -r 00c8843d491d lemon/smart_graph.h
--- a/lemon/smart_graph.h Sun Oct 12 19:35:48 2008 +0100
+++ b/lemon/smart_graph.h Thu Nov 06 23:12:57 2008 +0100
@@ -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;
}
More information about the Lemon-commits
mailing list