#include <ogdf/graphalg/MaxFlowModule.h>
|
| | MaxFlowModule () |
| | Empty Constructor.
|
| |
| | MaxFlowModule (const Graph &graph, EdgeArray< T > *flow=nullptr) |
| | Constructor that calls init.
|
| |
| virtual | ~MaxFlowModule () |
| | Destructor that deletes m_flow if it is an internal flow array.
|
| |
| T | computeFlow (EdgeArray< T > &cap, node &s, node &t, EdgeArray< T > &flow) |
| | Only a shortcut for computeValue and computeFlowAfterValue.
|
| |
| virtual void | computeFlowAfterValue ()=0 |
| | Compute the flow itself after the flow value is already computed. Only used in algorithms with 2 phases. The flow is stored in the array that the user gave in the constructor.
|
| |
| void | computeFlowAfterValue (EdgeArray< T > &flow) |
| | Compute the flow itself after the flow value is already computed. Only used in algorithms with 2 phases. The flow is stored in the parameter flow.
|
| |
| virtual T | computeValue (const EdgeArray< T > &cap, const node &s, const node &t)=0 |
| | Compute only the value of the flow.
|
| |
| virtual void | init (const Graph &graph, EdgeArray< T > *flow=nullptr) |
| | Initialize the problem with a graph and optional flow array. If no flow array is given, a new ("internal") array will be created. If a flow array is given, the algorithm uses this "external" array.
|
| |
| bool | isFeasibleInstance () const |
| | Return whether the instance is feasible, i.e. the capacities are non-negative.
|
| |
| void | useEpsilonTest (const double &eps) |
| | Change the used EpsilonTest from StandardEpsilonTest to a user given EpsilonTest.
|
| |
|
| bool | doingAReInit = false |
| | Is the next "init" call a re-init?
|
| |
| bool | usingExternFlow = false |
| | Is an extern flow array given in the constructor?
|
| |
template<typename T>
class ogdf::MaxFlowModule< T >
Definition at line 41 of file MaxFlowModule.h.
◆ MaxFlowModule() [1/2]
◆ MaxFlowModule() [2/2]
Constructor that calls init.
- Parameters
-
| graph | is the graph for the flow problem. |
| flow | is an optional argument that can be used to force the algorithm to work on an user given "external" EdgeArray flow |
Definition at line 72 of file MaxFlowModule.h.
◆ ~MaxFlowModule()
Destructor that deletes m_flow if it is an internal flow array.
Definition at line 78 of file MaxFlowModule.h.
◆ computeFlow()
Only a shortcut for computeValue and computeFlowAfterValue.
- Returns
- The value of the flow.
- Parameters
-
| cap | is the EdgeArray of non-negative capacities. |
| s | is the source. |
| t | is the sink. |
| flow | A copy of the "internal" flow array is given in flow. |
Definition at line 165 of file MaxFlowModule.h.
◆ computeFlowAfterValue() [1/2]
◆ computeFlowAfterValue() [2/2]
Compute the flow itself after the flow value is already computed. Only used in algorithms with 2 phases. The flow is stored in the parameter flow.
- Parameters
-
| flow | The "internal" flow array is given in flow. |
Definition at line 141 of file MaxFlowModule.h.
◆ computeValue()
◆ destroy()
◆ init()
Initialize the problem with a graph and optional flow array. If no flow array is given, a new ("internal") array will be created. If a flow array is given, the algorithm uses this "external" array.
- Parameters
-
| graph | is the graph for the flow problem. |
| flow | is an optional argument that can be used to force the algorithm to work on an user given "external" EdgeArray flow |
Reimplemented in ogdf::MaxFlowSTPlanarDigraph< TCap >.
Definition at line 88 of file MaxFlowModule.h.
◆ isFeasibleInstance()
Return whether the instance is feasible, i.e. the capacities are non-negative.
Definition at line 148 of file MaxFlowModule.h.
◆ useEpsilonTest()
◆ doingAReInit
◆ m_cap
◆ m_et
◆ m_flow
◆ m_G
◆ m_s
◆ m_t
◆ usingExternFlow
Is an extern flow array given in the constructor?
Definition at line 51 of file MaxFlowModule.h.
The documentation for this class was generated from the following file: