This class is just an alias for NetworkSimplex, which is the most efficient algorithm for the minimum cost flow problem in LEMON according to our benchmark tests. For the detailed documentation of this class see NetworkSimplex.
There are four implementations for the minimum cost flow problem, which can be used exactly the same way.
Graph | The directed graph type the algorithm runs on. | |
LowerMap | The type of the lower bound map. | |
CapacityMap | The type of the capacity (upper bound) map. | |
CostMap | The type of the cost (length) map. | |
SupplyMap | The type of the supply map. |
CostMap::Value
must be signed type.#include <lemon/min_cost_flow.h>
Public Member Functions | |
MinCostFlow (const Graph &graph, const LowerMap &lower, const CapacityMap &capacity, const CostMap &cost, const SupplyMap &supply) | |
General constructor (with lower bounds). | |
MinCostFlow (const Graph &graph, const CapacityMap &capacity, const CostMap &cost, const SupplyMap &supply) | |
General constructor of the class (without lower bounds). | |
MinCostFlow (const Graph &graph, const LowerMap &lower, const CapacityMap &capacity, const CostMap &cost, Node s, Node t, Supply flow_value) | |
Simple constructor (with lower bounds). | |
MinCostFlow (const Graph &graph, const CapacityMap &capacity, const CostMap &cost, Node s, Node t, Supply flow_value) | |
Simple constructor (without lower bounds). |