Changeset 487:11ad69691d18 in lemon-0.x for src/work
- Timestamp:
- 04/29/04 21:25:52 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@645
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/jacint/max_flow.h
r485 r487 88 88 public: 89 89 90 ///\todo Document this 90 91 enum flowEnum{ 91 92 ZERO_FLOW=0, … … 105 106 } 106 107 107 /// A preflow algorithm is run. The initial edge-set have to be a flow, 108 /// or from a preflow, according to \c fe. 108 /// A preflow algorithm is run. 109 ///\pre The initial edge-map have to be a 110 /// zero flow if \c fe is \c ZERO_FLOW, 111 /// a flow if \c fe is \c GEN_FLOW, 112 /// and a pre-flow it is \c PREFLOW. 109 113 void preflow( flowEnum fe ) { 110 114 preflowPhase0(fe); … … 122 126 /// according to the Edmonds-Karp algorithm 123 127 /// and augments the flow on if any. 128 /// The return value shows if the augmentation was succesful. 124 129 bool augmentOnShortestPath(); 125 130 … … 128 133 /// The blocking flow is computed in a physically constructed 129 134 /// residual graph of type \c Mutablegraph. 135 /// The return value show sif the augmentation was succesful. 130 136 template<typename MutableGraph> bool augmentOnBlockingFlow(); 131 137 132 138 /// The same as \c augmentOnBlockingFlow<MutableGraph> but the 133 139 /// residual graph is not constructed physically. 140 /// The return value shows if the augmentation was succesful. 134 141 bool augmentOnBlockingFlow2(); 135 142 … … 160 167 } 161 168 162 163 169 /// The unique inclusionwise minimum cut is computed by 164 170 /// processing a bfs from s in the residual graph. … … 243 249 void minCut(CutMap& M) { minMinCut(M); } 244 250 245 ///246 void resetSource(Node _s) {s=_s;}247 251 /// 248 void resetTarget(Node _t) {t=_t;} 252 void resetSource(Node _s) { s=_s; } 253 /// 254 void resetTarget(Node _t) { t=_t; } 249 255 250 256 /// capacity-map is changed.
Note: See TracChangeset
for help on using the changeset viewer.