graph_analysis
MinCostFlow.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_ALGORITHMS_MIN_COST_FLOW_HPP
2 #define GRAPH_ANALYSIS_ALGORITHMS_MIN_COST_FLOW_HPP
3 
4 #include "../BaseGraph.hpp"
5 #include "../WeightedEdge.hpp"
6 #include "../WeightedVertex.hpp"
7 
8 namespace graph_analysis {
9 namespace algorithms {
10 
30 {
31 public:
34 
37 
39 
40  MinCostFlow(const BaseGraph::Ptr& graph, Type type = NetworkSimplex);
41 
47  uint32_t run();
48 
49 private:
50  BaseGraph::Ptr mpGraph;
51  Type mType;
52 };
53 
54 
55 } // end namespace algorithms
56 } // end namespace graph_analysis
57 #endif // GRAPH_ANALYSIS_ALGORITHMS_MIN_COST_FLOW_HPP
graph_analysis::algorithms::MinCostFlow::RESULT_FLOW
@ RESULT_FLOW
Definition: MinCostFlow.hpp:35
graph_analysis::algorithms::MinCostFlow::VertexIndex
VertexIndex
Definition: MinCostFlow.hpp:36
graph_analysis::algorithms::MinCostFlow::edge_t
NWeightedEdge< int32_t, 5 > edge_t
Definition: MinCostFlow.hpp:32
graph_analysis::algorithms::MinCostFlow::SUPPLY_DEMAND
@ SUPPLY_DEMAND
Definition: MinCostFlow.hpp:36
graph_analysis::algorithms::MinCostFlow::MinCostFlow
MinCostFlow(const BaseGraph::Ptr &graph, Type type=NetworkSimplex)
Definition: MinCostFlow.cpp:10
graph_analysis::algorithms::MinCostFlow::LOWER_BOUND
@ LOWER_BOUND
Definition: MinCostFlow.hpp:35
graph_analysis::algorithms::MinCostFlow::RESULT_POTENTIAL
@ RESULT_POTENTIAL
Definition: MinCostFlow.hpp:36
graph_analysis::algorithms::MinCostFlow::COST
@ COST
Definition: MinCostFlow.hpp:35
graph_analysis
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
graph_analysis::BaseGraph::Ptr
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
graph_analysis::algorithms::MinCostFlow
Definition: MinCostFlow.hpp:29
graph_analysis::algorithms::MinCostFlow::vertex_t
NWeightedVertex< int32_t, 2 > vertex_t
Definition: MinCostFlow.hpp:33
graph_analysis::algorithms::MinCostFlow::run
uint32_t run()
Definition: MinCostFlow.cpp:16
graph_analysis::algorithms::MinCostFlow::CapacityScaling
@ CapacityScaling
Definition: MinCostFlow.hpp:38
graph_analysis::NWeightedVertex
NWeightedVertex is an Vertex which can be associated with N-weights, i.e., a vector of weights.
Definition: NWeightedVertex.hpp:16
graph_analysis::algorithms::MinCostFlow::EdgeIndex
EdgeIndex
Definition: MinCostFlow.hpp:35
graph_analysis::algorithms::MinCostFlow::Type
Type
Definition: MinCostFlow.hpp:38
graph_analysis::algorithms::MinCostFlow::CostScaling
@ CostScaling
Definition: MinCostFlow.hpp:38
graph_analysis::algorithms::MinCostFlow::UPPER_BOUND
@ UPPER_BOUND
Definition: MinCostFlow.hpp:35
graph_analysis::algorithms::MinCostFlow::NetworkSimplex
@ NetworkSimplex
Definition: MinCostFlow.hpp:38
graph_analysis::algorithms::MinCostFlow::CycleCanceling
@ CycleCanceling
Definition: MinCostFlow.hpp:38
graph_analysis::NWeightedEdge
NWeightedEdge is an Edge which can be associated with N-weights, i.e., a vector of weights.
Definition: NWeightedEdge.hpp:17