Google OR-Tools: ortools/graph/max_flow.h Source File
Loading...
Searching...
No Matches
Go to the documentation of this file.
14#ifndef ORTOOLS_GRAPH_MAX_FLOW_H_
15#define ORTOOLS_GRAPH_MAX_FLOW_H_
124 std::vector<NodeIndex> arc_tail_;
125 std::vector<NodeIndex> arc_head_;
126 std::vector<FlowQuantity> arc_capacity_;
127 std::vector<ArcIndex> arc_permutation_;
128 std::vector<FlowQuantity> arc_flow_;
133 typedef ::util::ReverseArcStaticGraph<NodeIndex, ArcIndex> Graph;
134 std::unique_ptr<Graph> underlying_graph_;
135 std::unique_ptr<GenericMaxFlow<Graph> > underlying_max_flow_;
SimpleMaxFlow & operator=(const SimpleMaxFlow &)=delete
FlowModelProto CreateFlowModelProto(NodeIndex source, NodeIndex sink) const
FlowQuantity OptimalFlow() const
SimpleMaxFlow(const SimpleMaxFlow &)=delete
void SetArcCapacity(ArcIndex arc, FlowQuantity capacity)
void GetSinkSideMinCut(std::vector< NodeIndex > *result)
int32_t NodeIndex
Definition max_flow.h:35
NodeIndex Tail(ArcIndex arc) const
ArcIndex AddArcWithCapacity(NodeIndex tail, NodeIndex head, FlowQuantity capacity)
NodeIndex NumNodes() const
Status
Definition max_flow.h:71
@ BAD_RESULT
Definition max_flow.h:85
@ POSSIBLE_OVERFLOW
Definition max_flow.h:81
@ BAD_INPUT
Definition max_flow.h:83
@ OPTIMAL
Definition max_flow.h:74
NodeIndex Head(ArcIndex arc) const
Status Solve(NodeIndex source, NodeIndex sink)
FlowQuantity Capacity(ArcIndex arc) const
int32_t ArcIndex
Definition max_flow.h:36
FlowQuantity Flow(ArcIndex arc) const
int64_t FlowQuantity
Definition max_flow.h:37
void GetSourceSideMinCut(std::vector< NodeIndex > *result)
BlossomGraph::NodeIndex NodeIndex
util::ReverseArcStaticGraph Graph