lemon/graph_adaptor.h
changeset 2340 03c71d754990
parent 2277 a7896017fc7d
child 2384 805c5a2a36dd
     1.1 --- a/lemon/graph_adaptor.h	Thu Jan 11 21:20:57 2007 +0000
     1.2 +++ b/lemon/graph_adaptor.h	Thu Jan 11 21:22:39 2007 +0000
     1.3 @@ -1450,7 +1450,7 @@
     1.4      void setFlow(const FlowMap& _flow) { flow = &_flow; }
     1.5  
     1.6      bool operator[](const typename Graph::Edge& e) const {
     1.7 -      return tolerance.less((*flow)[e], (*capacity)[e]);
     1.8 +      return tolerance.positive((*capacity)[e] - (*flow)[e]);
     1.9      }
    1.10    };
    1.11  
    1.12 @@ -1473,7 +1473,7 @@
    1.13      void setCapacity(const CapacityMap& _capacity) { capacity = &_capacity; }
    1.14      void setFlow(const FlowMap& _flow) { flow = &_flow; }
    1.15      bool operator[](const typename Graph::Edge& e) const {
    1.16 -      return tolerance.less(0, Number((*flow)[e]));
    1.17 +      return tolerance.positive((*flow)[e]);
    1.18      }
    1.19    };
    1.20