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
VertexIndex
Definition: MinCostFlow.hpp:36
NWeightedEdge< int32_t, 5 > edge_t
Definition: MinCostFlow.hpp:32
NWeightedEdge is an Edge which can be associated with N-weights, i.e., a vector of weights...
Definition: NWeightedEdge.hpp:18
Definition: MinCostFlow.hpp:29
Type
Definition: MinCostFlow.hpp:38
MinCostFlow(const BaseGraph::Ptr &graph, Type type=NetworkSimplex)
Definition: MinCostFlow.cpp:10
Definition: MinCostFlow.hpp:35
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
NWeightedVertex< int32_t, 2 > vertex_t
Definition: MinCostFlow.hpp:33
NWeightedVertex is an Vertex which can be associated with N-weights, i.e., a vector of weights...
Definition: NWeightedVertex.hpp:15
uint32_t run()
Definition: MinCostFlow.cpp:16
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
EdgeIndex
Definition: MinCostFlow.hpp:35