Bug fix.
authordeba
Wed, 09 Nov 2005 12:54:59 +0000
changeset 1782cb405cda0205
parent 1781 dca4c8a54e0a
child 1783 474666e89a2a
Bug fix.
lemon/belmann_ford.h
     1.1 --- a/lemon/belmann_ford.h	Wed Nov 09 12:07:00 2005 +0000
     1.2 +++ b/lemon/belmann_ford.h	Wed Nov 09 12:54:59 2005 +0000
     1.3 @@ -399,6 +399,7 @@
     1.4        if (OperationTraits::less(value, OperationTraits::infinity())) {
     1.5  	for (NodeIt it(*graph); it != INVALID; ++it) {
     1.6  	  _process.push_back(it);
     1.7 +	  _mask.set(it, true);
     1.8  	}
     1.9        }
    1.10      }
    1.11 @@ -475,9 +476,6 @@
    1.12  	  }	  
    1.13  	}
    1.14        }
    1.15 -      for (int i = 0; i < (int)nextProcess.size(); ++i) {
    1.16 -	_mask->set(nextProcess[i], false);
    1.17 -      }
    1.18        _process.swap(nextProcess);
    1.19        return _process.empty();
    1.20      }