[Lemon-commits] Balazs Dezso: Fix in HartmannOrlin algorithm (#333)
Lemon HG
hg at lemon.cs.elte.hu
Fri Nov 20 14:18:43 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/921d5bf41ac2
changeset: 859:921d5bf41ac2
user: Balazs Dezso <deba [at] inf.elte.hu>
date: Wed Nov 18 21:21:26 2009 +0100
description:
Fix in HartmannOrlin algorithm (#333)
diffstat:
lemon/hartmann_orlin.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff --git a/lemon/hartmann_orlin.h b/lemon/hartmann_orlin.h
--- a/lemon/hartmann_orlin.h
+++ b/lemon/hartmann_orlin.h
@@ -598,7 +598,9 @@
}
}
level[u] = Pair(i, j);
- u = _gr.source(_data[u][j].pred);
+ if (j != 0) {
+ u = _gr.source(_data[u][j].pred);
+ }
}
}
More information about the Lemon-commits
mailing list