39 template<
typename TCost>
61 edge e_st =
nullptr) = 0;
118 bool isSTplanarEmbeded(
false);
122 isSTplanarEmbeded = (adjS !=
nullptr);
124 if(isSTplanarEmbeded) {
125 if (e_st ==
nullptr) {
129 if (e_st ==
nullptr) {
void init(Graph &G)
Initializes the embedding for graph G.
node copy(node v) const
Returns the node in the graph copy corresponding to v.
Data type for general directed graphs (adjacency list representation).
Declaration of CombinatorialEmbedding and face.
bool planarSTEmbed(Graph &graph, node s, node t)
s-t-planarly embeds a graph.
bool representsCombEmbedding() const
Returns true iff the graph represents a combinatorial embedding.
adjEntry findCommonFace(const node v, const node w, bool left=true) const
Identifies a common face of two nodes and returns the respective adjacency entry. ...
edge newEdge(edge eOrig)
Creates a new edge (v,w) with original edge eOrig.
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 g...
virtual bool direction(edge e)
Returns the direction of e in the cut.
int numberOfEdges() const
Returns the number of edges in the graph.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
MinSTCutModule()
default constructor (empty)
EdgeArray< int > m_direction
edge splitFace(adjEntry adjSrc, adjEntry adjTgt)
Splits a face by inserting a new edge.
The namespace for all OGDF objects.
Declaration of extended graph algorithms.
virtual bool call(const Graph &graph, const EdgeArray< TCost > &weight, node s, node t, List< edge > &edgeList, edge e_st=nullptr)=0
The actual algorithm call.
Combinatorial embeddings of planar graphs with modification functionality.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
virtual ~MinSTCutModule()