Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <max_flow.h>
Public Member Functions | |
MaxFlow (const StarGraph *graph, NodeIndex source, NodeIndex target) | |
Public Member Functions inherited from operations_research::GenericMaxFlow< StarGraph > | |
GenericMaxFlow (const StarGraph *graph, NodeIndex source, NodeIndex sink) | |
GenericMaxFlow (const GenericMaxFlow &)=delete | |
This type is neither copyable nor movable. | |
GenericMaxFlow & | operator= (const GenericMaxFlow &)=delete |
virtual | ~GenericMaxFlow () |
const StarGraph * | graph () const |
Returns the graph associated to the current object. | |
Status | status () const |
NodeIndex | GetSourceNodeIndex () const |
Returns the index of the node corresponding to the source of the network. | |
NodeIndex | GetSinkNodeIndex () const |
Returns the index of the node corresponding to the sink of the network. | |
void | SetArcCapacity (ArcIndex arc, FlowQuantity new_capacity) |
Sets the capacity for arc to new_capacity. | |
void | SetArcFlow (ArcIndex arc, FlowQuantity new_flow) |
Sets the flow for arc. | |
bool | Solve () |
Returns true if a maximum flow was solved. | |
FlowQuantity | GetOptimalFlow () const |
Returns the total flow found by the algorithm. | |
FlowQuantity | Flow (ArcIndex arc) const |
FlowQuantity | Capacity (ArcIndex arc) const |
void | GetSourceSideMinCut (std::vector< NodeIndex > *result) |
void | GetSinkSideMinCut (std::vector< NodeIndex > *result) |
bool | CheckInputConsistency () const |
bool | CheckResult () const |
bool | AugmentingPathExists () const |
void | SetUseGlobalUpdate (bool value) |
void | SetUseTwoPhaseAlgorithm (bool value) |
void | SetCheckInput (bool value) |
void | SetCheckResult (bool value) |
void | ProcessNodeByHeight (bool value) |
FlowModelProto | CreateFlowModel () |
Returns the protocol buffer representation of the current problem. | |
Default instance MaxFlow that uses StarGraph. Note that we cannot just use a typedef because of dependent code expecting MaxFlow to be a real class.
Definition at line 685 of file max_flow.h.
|
inline |
Definition at line 687 of file max_flow.h.