COIN-OR::LEMON - Graph Library

Changeset 2340:03c71d754990 in lemon-0.x for lemon/graph_adaptor.h


Ignore:
Timestamp:
01/11/07 22:22:39 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3132
Message:

Make Hao-Orlin epsilon-safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_adaptor.h

    r2277 r2340  
    14511451
    14521452    bool operator[](const typename Graph::Edge& e) const {
    1453       return tolerance.less((*flow)[e], (*capacity)[e]);
     1453      return tolerance.positive((*capacity)[e] - (*flow)[e]);
    14541454    }
    14551455  };
     
    14741474    void setFlow(const FlowMap& _flow) { flow = &_flow; }
    14751475    bool operator[](const typename Graph::Edge& e) const {
    1476       return tolerance.less(0, Number((*flow)[e]));
     1476      return tolerance.positive((*flow)[e]);
    14771477    }
    14781478  };
Note: See TracChangeset for help on using the changeset viewer.