Changeset 276:b38f4cfa76cf in lemon-0.x for src/work/athos
- Timestamp:
- 04/02/04 16:53:05 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@389
- Location:
- src/work/athos
- Files:
-
- 2 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
src/work/athos/graph_wrapper.h
r275 r276 951 951 typedef typename /*GraphWrapperSkeleton<GraphWrapper>*/ 952 952 GraphWrapper::InEdgeIt OldInEdgeIt; 953 954 typedef typename /*GraphWrapperSkeleton<GraphWrapper>*/ 955 GraphWrapper::Edge OldEdge; 953 956 protected: 954 957 //const Graph* graph; … … 993 996 else 994 997 return (u.out_or_in || u.in!=v.in); 995 } 998 } 999 operator OldEdge() { 1000 if(out_or_in) 1001 return out; 1002 else 1003 return in; 1004 } 996 1005 }; 997 1006 … … 1209 1218 1210 1219 Number resCap(OldOutEdgeIt out) const { 1211 return ( capacity->get(out)-flow->get(out));1220 return ( (*capacity)[out] - (*flow)[out]); 1212 1221 } 1213 1222 1214 1223 Number resCap(OldInEdgeIt in) const { 1215 return ( flow->get(in));1224 return ( (*flow)[in] ); 1216 1225 } 1217 1226
Note: See TracChangeset
for help on using the changeset viewer.