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); + } } }