Changeset 2581:054566ac0934 in lemon-0.x for lemon/min_cost_flow.h
- Timestamp:
- 02/28/08 03:54:27 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3463
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/min_cost_flow.h
r2579 r2581 44 44 /// 45 45 /// There are four implementations for the minimum cost flow problem, 46 /// which can be used exactly the same way except for the fact that 47 /// \ref CycleCanceling does not provide dual solution (node 48 /// potentials) since it is a pure primal method. 46 /// which can be used exactly the same way. 49 47 /// - \ref CapacityScaling The capacity scaling algorithm. 50 48 /// - \ref CostScaling The cost scaling algorithm. … … 61 59 /// - Edge capacities and costs should be \e non-negative \e integers. 62 60 /// - Supply values should be \e signed \e integers. 63 /// - \c LowerMap::Value must be convertible to \c CapacityMap::Value. 64 /// - \c CapacityMap::Value and \c SupplyMap::Value must be 65 /// convertible to each other. 66 /// - All value types must be convertible to \c CostMap::Value, which 67 /// must be signed type. 61 /// - The value types of the maps should be convertible to each other. 62 /// - \c CostMap::Value must be signed type. 68 63 /// 69 64 /// \author Peter Kovacs … … 71 66 template < typename Graph, 72 67 typename LowerMap = typename Graph::template EdgeMap<int>, 73 typename CapacityMap = LowerMap,68 typename CapacityMap = typename Graph::template EdgeMap<int>, 74 69 typename CostMap = typename Graph::template EdgeMap<int>, 75 typename SupplyMap = typename Graph::template NodeMap 76 <typename CapacityMap::Value> > 70 typename SupplyMap = typename Graph::template NodeMap<int> > 77 71 class MinCostFlow : 78 72 public NetworkSimplex< Graph, LowerMap, CapacityMap, … … 86 80 public: 87 81 88 /// General constructor of the class(with lower bounds).82 /// General constructor (with lower bounds). 89 83 MinCostFlow( const Graph &graph, 90 84 const LowerMap &lower, … … 101 95 MinCostFlowImpl(graph, capacity, cost, supply) {} 102 96 103 /// Simple constructor of the class(with lower bounds).97 /// Simple constructor (with lower bounds). 104 98 MinCostFlow( const Graph &graph, 105 99 const LowerMap &lower, … … 111 105 s, t, flow_value ) {} 112 106 113 /// Simple constructor of the class(without lower bounds).107 /// Simple constructor (without lower bounds). 114 108 MinCostFlow( const Graph &graph, 115 109 const CapacityMap &capacity,
Note: See TracChangeset
for help on using the changeset viewer.