Changeset 2340:03c71d754990 in lemon-0.x for lemon/graph_adaptor.h
- Timestamp:
- 01/11/07 22:22:39 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_adaptor.h
r2277 r2340 1451 1451 1452 1452 bool operator[](const typename Graph::Edge& e) const { 1453 return tolerance. less((*flow)[e], (*capacity)[e]);1453 return tolerance.positive((*capacity)[e] - (*flow)[e]); 1454 1454 } 1455 1455 }; … … 1474 1474 void setFlow(const FlowMap& _flow) { flow = &_flow; } 1475 1475 bool operator[](const typename Graph::Edge& e) const { 1476 return tolerance. less(0, Number((*flow)[e]));1476 return tolerance.positive((*flow)[e]); 1477 1477 } 1478 1478 };
Note: See TracChangeset
for help on using the changeset viewer.