Changeset 2387:317b9a88c350 in lemon-0.x
- Timestamp:
- 03/03/07 12:57:07 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3218
- Location:
- lemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/preflow.h
r2386 r2387 60 60 ///\param CapacityMap The capacity map type. 61 61 ///\param FlowMap The flow map type. 62 ///\param Tol eranceThe tolerance type.62 ///\param Tol The tolerance type. 63 63 /// 64 64 ///\author Jacint Szabo … … 67 67 typename CapacityMap=typename Graph::template EdgeMap<Num>, 68 68 typename FlowMap=typename Graph::template EdgeMap<Num>, 69 typename Tol erance=Tolerance<Num> >69 typename Tol=Tolerance<Num> > 70 70 class Preflow { 71 71 protected: … … 85 85 FlowMap* _flow; 86 86 87 Tol erance_surely;87 Tol _surely; 88 88 89 89 int _node_num; //the number of nodes of G … … 156 156 ///\param _cap The capacity of the edges. 157 157 ///\param _f The flow of the edges. 158 ///\param _sr Tol eranceclass.158 ///\param _sr Tol class. 159 159 ///Except the graph, all of these parameters can be reset by 160 160 ///calling \ref source, \ref target, \ref capacityMap and \ref … … 162 162 Preflow(const Graph& _gr, Node _s, Node _t, 163 163 const CapacityMap& _cap, FlowMap& _f, 164 const Tol erance &_sr=Tolerance()) :164 const Tol &_sr=Tol()) : 165 165 _g(&_gr), _source(_s), _target(_t), _capacity(&_cap), 166 166 _flow(&_f), _surely(_sr), … … 175 175 ///Give a reference to the tolerance handler class 176 176 ///\sa Tolerance 177 Tol erance&tolerance() { return _surely; }177 Tol &tolerance() { return _surely; } 178 178 179 179 ///Runs the preflow algorithm. -
lemon/random.h
r2386 r2387 309 309 310 310 template <typename Result, typename Word, 311 bool one_word = std::numeric_limits<Word>::digits <312 std::numeric_limits<Result>::digits>311 bool one_word = (std::numeric_limits<Word>::digits < 312 std::numeric_limits<Result>::digits) > 313 313 struct Mapping { 314 314 static Result map(RandomCore<Word>& rnd, const Result& bound) {
Note: See TracChangeset
for help on using the changeset viewer.