44template<
typename TCost>
81 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) {
Declaration of CombinatorialEmbedding and face.
Includes declaration of graph class.
Declaration of graph copy classes.
Basic declarations, included by all source files.
Class for adjacency list elements.
Combinatorial embeddings of planar graphs with modification functionality.
void init(Graph &G)
Initializes the embedding for graph G.
edge splitFace(adjEntry adjSrc, adjEntry adjTgt, bool sourceAfter=false)
Splits a face by inserting a new edge.
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.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
edge copy(edge e) const override
Returns the first edge in the list of edges corresponding to edge e.
edge newEdge(edge eOrig)
Creates a new edge (v,w) with original edge eOrig.
Data type for general directed graphs (adjacency list representation).
int numberOfEdges() const
Returns the number of edges in the graph.
bool representsCombEmbedding() const
Returns true iff the graph represents a combinatorial embedding.
Doubly linked lists (maintaining the length of the list).
virtual bool call(const Graph &graph, node s, node t, List< edge > &edgeList, edge e_st=nullptr)=0
The actual algorithm call.
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.
MinSTCutModule()
default constructor (empty)
virtual ~MinSTCutModule()
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.
EdgeArray< int > m_direction
Class for the representation of nodes.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Declaration of extended graph algorithms.
bool planarSTEmbed(Graph &graph, node s, node t)
s-t-planarly embeds a graph.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.