Min-st-cut algorithm, that calculates the cut by doing a depth first search over the dual graph of of an st-planar input graph. More...
#include <ogdf/graphalg/MinSTCutBFS.h>
Inheritance diagram for ogdf::MinSTCutBFS< TCost >:Public Member Functions | |
| MinSTCutBFS () | |
| virtual bool | call (const Graph &graph, const EdgeArray< TCost > &weight, node s, node t, List< edge > &edgeList, edge e_st=nullptr) override |
| The actual algorithm call. | |
| virtual bool | call (const Graph &graph, node s, node t, List< edge > &edgeList, edge e_st=nullptr) override |
| The actual algorithm call. | |
Public Member Functions inherited from ogdf::MinSTCutModule< TCost > | |
| MinSTCutModule () | |
| default constructor (empty) | |
| virtual | ~MinSTCutModule () |
| virtual bool | direction (edge e) |
Returns the direction of e in the cut. | |
Private Member Functions | |
| bool | call (const Graph &graph, const EdgeArray< TCost > *weight, node s, node t, List< edge > &edgeList, edge e_st) |
This internal call uses a pointer to the weight instead of a reference. | |
Additional Inherited Members | |
Protected Member Functions inherited from ogdf::MinSTCutModule< TCost > | |
| bool | preprocessingDual (const Graph &graph, GraphCopy &gc, CombinatorialEmbedding &CE, node source, node target, edge e_st) |
This method preprocesses gc for minstcut calculations, by adding an st-edge if needed and embedding gc. | |
Protected Attributes inherited from ogdf::MinSTCutModule< TCost > | |
| EdgeArray< int > | m_direction |
| GraphCopy * | m_gc = nullptr |
Min-st-cut algorithm, that calculates the cut by doing a depth first search over the dual graph of of an st-planar input graph.
| TCost | The type in which the weight of the edges is given. |
Definition at line 59 of file MinSTCutBFS.h.
|
inline |
Definition at line 61 of file MinSTCutBFS.h.
|
inlineoverridevirtual |
The actual algorithm call.
| graph | The graph on which the min-st-cut is to be calculated. |
| weight | Provides a weight for every edge. |
| s | The source node. |
| t | The target node. |
| edgeList | This list is filled with the edges which are part of the mincut. If the graph is st-planarly embedded, this list is correctly ordered along the cut. |
| e_st | An edge between s and t which is used to determine where the cut should start, nullptr elsewise. |
Implements ogdf::MinSTCutModule< TCost >.
Definition at line 74 of file MinSTCutBFS.h.
|
private |
This internal call uses a pointer to the weight instead of a reference.
The actual algorithm call.
| graph | The graph on which the min-st-cut is to be calculated. |
| weight | Provides a weight for every edge. |
| s | The source node. |
| t | The target node. |
| edgeList | This list is filled with the edges which are part of the mincut. If the graph is st-planarly embedded, this list is correctly ordered along the cut. |
| e_st | An edge between s and t which is used to determine where the cut should start, nullptr elsewise. |
Definition at line 92 of file MinSTCutBFS.h.
|
inlineoverridevirtual |
The actual algorithm call.
| graph | The graph on which the min-st-cut is to be calculated. |
| s | The source node. |
| t | The target node. |
| edgeList | This list is filled with the edges which are part of the mincut. If the graph is st-planarly embedded, this list is correctly ordered along the cut. |
| e_st | An edge between s and t which is used to determine where the cut should start, nullptr elsewise. |
Implements ogdf::MinSTCutModule< TCost >.
Definition at line 66 of file MinSTCutBFS.h.