# HG changeset patch # User alpar # Date 1111225111 0 # Node ID 01f668e3e1688edb079cc2309bfee7f61b0a39f2 # Parent 71fcebd3a0413cf97aa954de7c83704c08b68d62 - A primitive function type interface for Preflow. - A compilation bug fixed diff -r 71fcebd3a041 -r 01f668e3e168 src/lemon/preflow.h --- a/src/lemon/preflow.h Fri Mar 18 06:00:20 2005 +0000 +++ b/src/lemon/preflow.h Sat Mar 19 09:38:31 2005 +0000 @@ -59,6 +59,7 @@ ///\param FlowMap The flow map type. /// ///\author Jacint Szabo + ///\todo Second template parameter is superfluous template , typename FlowMap=typename Graph::template EdgeMap > @@ -407,7 +408,7 @@ std::queue queue; M.set(_source,true); - queue.push(s); + queue.push(_source); while (!queue.empty()) { Node w=queue.front(); @@ -845,10 +846,23 @@ } //relabel }; + + ///Function type interface for Preflow algorithm. + + /// \ingroup flowalgs + ///Function type interface for Preflow algorithm. + ///\sa Preflow + template + Preflow preflow(const GR &g, + typename GR::Node source, + typename GR::Node target, + const CM &cap, + FM &flow + ) + { + return Preflow(g,source,target,cap,flow); + } + } //namespace lemon #endif //LEMON_PREFLOW_H - - - -