Fix in HartmannOrlin algorithm (#333)
authorBalazs Dezso <deba@inf.elte.hu>
Wed, 18 Nov 2009 21:21:26 +0100
changeset 795921d5bf41ac2
parent 792 a2d5fd4c309a
child 796 9cc6e98c487d
Fix in HartmannOrlin algorithm (#333)
lemon/hartmann_orlin.h
     1.1 --- a/lemon/hartmann_orlin.h	Wed Nov 18 14:38:38 2009 +0100
     1.2 +++ b/lemon/hartmann_orlin.h	Wed Nov 18 21:21:26 2009 +0100
     1.3 @@ -598,7 +598,9 @@
     1.4              }
     1.5            }
     1.6            level[u] = Pair(i, j);
     1.7 -          u = _gr.source(_data[u][j].pred);
     1.8 +          if (j != 0) {
     1.9 +	    u = _gr.source(_data[u][j].pred);
    1.10 +	  }
    1.11          }
    1.12        }
    1.13