Changeset 2019:e70c1f6849bc in lemon-0.x
- Timestamp:
- 03/27/06 18:25:14 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2656
- Location:
- lemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/dfs.h
r1993 r2019 922 922 typedef typename TR::DistMap DistMap; 923 923 924 public:924 public: 925 925 /// Constructor. 926 926 DfsWizard() : TR() {} -
lemon/preflow.h
r1993 r2019 63 63 ///\author Jacint Szabo 64 64 ///\todo Second template parameter is superfluous 65 ///\todo Using tolerance 65 66 template <typename Graph, typename Num, 66 67 typename CapacityMap=typename Graph::template EdgeMap<Num>, 67 68 typename FlowMap=typename Graph::template EdgeMap<Num>, 68 typename T OL=Tolerance<Num> >69 typename Tolerance=Tolerance<Num> > 69 70 class Preflow { 70 71 protected: … … 84 85 FlowMap* _flow; 85 86 86 T OLsurely;87 Tolerance _surely; 87 88 88 89 int _node_num; //the number of nodes of G … … 161 162 Preflow(const Graph& _gr, Node _s, Node _t, 162 163 const CapacityMap& _cap, FlowMap& _f, 163 const T OL &tol=TOL()) :164 const Tolerance &_sr=Tolerance()) : 164 165 _g(&_gr), _source(_s), _target(_t), _capacity(&_cap), 165 _flow(&_f), surely(tol),166 _flow(&_f), _surely(_sr), 166 167 _node_num(countNodes(_gr)), level(_gr), excess(_gr,0), 167 168 flow_prop(NO_FLOW), status(AFTER_NOTHING) { … … 174 175 ///Give a reference to the tolerance handler class 175 176 ///\sa Tolerance 176 T OL &tolerance() { returnsurely; }177 Tolerance &tolerance() { return _surely; } 177 178 178 179 ///Runs the preflow algorithm.
Note: See TracChangeset
for help on using the changeset viewer.