# HG changeset patch # User alpar # Date 1137577328 0 # Node ID f030c01e61733430b7885ac5604aa5b0bf02e204 # Parent dd90f57b01d1a74fc20c7832d1f359a1828c3c42 - tolerance() added. - better doc. diff -r dd90f57b01d1 -r f030c01e6173 lemon/preflow.h --- a/lemon/preflow.h Wed Jan 18 09:40:53 2006 +0000 +++ b/lemon/preflow.h Wed Jan 18 09:42:08 2006 +0000 @@ -108,36 +108,34 @@ ///Indicates the property of the starting flow map. ///Indicates the property of the starting flow map. - ///The meanings are as follows: - ///- \c ZERO_FLOW: constant zero flow - ///- \c GEN_FLOW: any flow, i.e. the sum of the in-flows equals to - ///the sum of the out-flows in every node except the \e source and - ///the \e target. - ///- \c PRE_FLOW: any preflow, i.e. the sum of the in-flows is at - ///least the sum of the out-flows in every node except the \e source. - ///- \c NO_FLOW: indicates an unspecified edge map. \c flow will be - ///set to the constant zero flow in the beginning of - ///the algorithm in this case. /// enum FlowEnum{ + ///indicates an unspecified edge map. \c flow will be + ///set to the constant zero flow in the beginning of + ///the algorithm in this case. NO_FLOW, + ///constant zero flow ZERO_FLOW, + ///any flow, i.e. the sum of the in-flows equals to + ///the sum of the out-flows in every node except the \c source and + ///the \c target. GEN_FLOW, + ///any preflow, i.e. the sum of the in-flows is at + ///least the sum of the out-flows in every node except the \c source. PRE_FLOW }; ///Indicates the state of the preflow algorithm. ///Indicates the state of the preflow algorithm. - ///The meanings are as follows: - ///- \c AFTER_NOTHING: before running the algorithm or - /// at an unspecified state. - ///- \c AFTER_PREFLOW_PHASE_1: right after running \c phase1 - ///- \c AFTER_PREFLOW_PHASE_2: after running \ref phase2() /// enum StatusEnum { + ///before running the algorithm or + ///at an unspecified state. AFTER_NOTHING, + ///right after running \ref phase1() AFTER_PREFLOW_PHASE_1, + ///after running \ref phase2() AFTER_PREFLOW_PHASE_2 }; @@ -168,8 +166,12 @@ throw InvalidArgument(); } + ///Give a reference to the tolerance handler class - + ///Give a reference to the tolerance handler class + ///\sa Tolerance + TOL &tolerance() { return surely; } + ///Runs the preflow algorithm. ///Runs the preflow algorithm.