lemon/bellman_ford.h
changeset 1337 4add05447ca0
parent 1336 0759d974de81
     1.1 --- a/lemon/bellman_ford.h	Sun Jan 05 22:24:56 2014 +0100
     1.2 +++ b/lemon/bellman_ford.h	Tue Apr 14 08:39:40 2015 +0200
     1.3 @@ -701,8 +701,8 @@
     1.4      /// like an STL container (by having begin() and end())
     1.5      /// which you can use in range-based for loops, STL algorithms, etc.
     1.6      LemonRangeWrapper1<ActiveIt, BellmanFord>
     1.7 -        activeNodes(const BellmanFord& algorithm) const {
     1.8 -      return LemonRangeWrapper1<ActiveIt, BellmanFord>(algorithm);
     1.9 +    activeNodes() const {
    1.10 +      return LemonRangeWrapper1<ActiveIt, BellmanFord>(*this);
    1.11      }
    1.12  
    1.13