# HG changeset patch # User Balazs Dezso # Date 2009-11-18 21:21:26 # Node ID 921d5bf41ac2b1ce8c154148398bc3c40a68ced0 # Parent a2d5fd4c309a4c4431d3c2377cff197ebe0bf476 Fix in HartmannOrlin algorithm (#333) 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); + } } }