Changeset 2059:ebf3b2962554 in lemon-0.x for lemon/edmonds_karp.h
- Timestamp:
- 04/18/06 09:02:32 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2703
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/edmonds_karp.h
r2037 r2059 42 42 /// constructor. 43 43 /// 44 /// The time complexity of the algorithm is O(n * e^2) in worst case.45 /// Always try the preflow algorithm instead of this if you does not46 /// have some additional reason than to compute the optimal flow which47 /// has O(n^3)time complexity.44 /// The time complexity of the algorithm is \f$ O(n * e^2) \f$ in 45 /// worst case. Always try the preflow algorithm instead of this if 46 /// you does not have some additional reason than to compute the 47 /// optimal flow which has \f$ O(n^3) \f$ time complexity. 48 48 /// 49 49 /// \param _Graph The directed graph type the algorithm runs on. … … 54 54 /// 55 55 /// \author Balazs Dezso 56 #ifdef DOXYGEN 57 template <typename _Graph, typename _Number, 58 typename _CapacityMap, typename _FlowMap, typename _Tolerance> 59 #else 56 60 template <typename _Graph, typename _Number, 57 61 typename _CapacityMap = typename _Graph::template EdgeMap<_Number>, 58 62 typename _FlowMap = typename _Graph::template EdgeMap<_Number>, 59 63 typename _Tolerance = Tolerance<_Number> > 64 #endif 60 65 class EdmondsKarp { 61 66 public: … … 108 113 /// \param flow The flow of the edges. 109 114 /// \param tolerance Tolerance class. 110 /// Except the graph, all of these parameters can be reset by111 /// calling \ref source, \ref target, \ref capacityMap and \ref112 /// flowMap, resp.113 115 EdmondsKarp(const Graph& graph, Node source, Node target, 114 116 const CapacityMap& capacity, FlowMap& flow, … … 240 242 /// 241 243 /// It is just a shorthand for: 242 /// \code 244 /// 245 ///\code 243 246 /// ek.init(); 244 247 /// ek.start(); 245 /// 248 ///\endcode 246 249 void run() { 247 250 init();
Note: See TracChangeset
for help on using the changeset viewer.