Changeset 738:56e60e9eb2da in lemon-0.x
- Timestamp:
- 07/24/04 16:01:31 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@995
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/graph_wrapper.h
r736 r738 211 211 bool backward(const Edge& e) const { return graph->backward(e); } 212 212 213 Edge opposite(const Edge& e) const { Edge(graph->opposite(e)); }213 Edge opposite(const Edge& e) const { return Edge(graph->opposite(e)); } 214 214 215 215 template<typename T> class NodeMap : public Graph::template NodeMap<T> { … … 1011 1011 Parent::setBackwardFilterMap(cm); 1012 1012 } 1013 1014 int edgeNum() const { 1015 return 2*this->graph->edgeNum(); 1016 } 1013 1017 }; 1014 1018 … … 1389 1393 void setFlow(const FlowMap& _flow) { flow=&_flow; } 1390 1394 bool operator[](const typename Graph::Edge& e) const { 1391 return ( (*flow)[e] < (*capacity)[e]);1395 return (Number((*flow)[e]) < Number((*capacity)[e])); 1392 1396 } 1393 1397 }; … … 1408 1412 void setFlow(const FlowMap& _flow) { flow=&_flow; } 1409 1413 bool operator[](const typename Graph::Edge& e) const { 1410 return ( 0 < (*flow)[e]);1414 return (Number(0) < Number((*flow)[e])); 1411 1415 } 1412 1416 };
Note: See TracChangeset
for help on using the changeset viewer.