65 template<
typename TCost =
int>
80 CutEdge(
edge paramEdge,
bool directed) : e(paramEdge), dir(directed) {};
110 bool nonPlanarityGuaranteed =
false);
132 for (
edge eInCop: origEdgesOfThisSTComponent.
graphOf()->edges) {
133 if (origEdgesOfThisSTComponent[eInCop] !=
nullptr) {
134 res.
pushBack(origEdgesOfThisSTComponent[eInCop]);
212 bool nonPlanarityGuaranteed);
370 template<
typename Cost>
387 void mapLoserToNewWinnerEdge(
edge eInLoser);
392 void mapLoserToWinnerNode(
node vInLoser,
node vInWinner);
397 void mapLoserToNewWinnerNode(
node vInLoser);
409 void reorder(
node vLoser,
bool sameDirection,
bool isTNodeOfPNode);
417 return m_mapV_l2w[v];
453 template<
typename Cost>
459 call(G,
nullptr, &minSTCutBFS, nonPlanarityGuaranteed);
462 template<
typename Cost>
464 bool nonPlanarityGuaranteed) :
465 m_pOriginal(&G), m_orig(m_graph), m_real(m_graph, nullptr), m_mincut(m_graph),
466 m_cost(m_graph), m_T(G), m_mapV(m_graph, nullptr), m_mapE(m_graph, nullptr), m_underlyingGraphs(m_graph, nullptr),
467 m_sNode(m_graph), m_tNode(m_graph) {
468 call(G, &weight, minSTCutModule, nonPlanarityGuaranteed);
471 template<
typename Cost>
473 m_pOriginal(&G), m_orig(m_graph), m_real(m_graph, nullptr), m_mincut(m_graph),
474 m_cost(m_graph), m_T(G), m_mapV(m_graph, nullptr), m_mapE(m_graph, nullptr), m_underlyingGraphs(m_graph, nullptr),
475 m_sNode(m_graph), m_tNode(m_graph) {
477 call(G, &weight, &minSTCutDijkstra, nonPlanarityGuaranteed);
481 template<
typename Cost>
483 for (
auto pointer : m_mapE) {
486 for (
auto pointer : m_mapV) {
489 for (
auto pointer : m_underlyingGraphs) {
494 template<
typename Cost>
496 bool nonPlanarityGuaranteed) {
497 if (!nonPlanarityGuaranteed &&
isPlanar(G)) {
526 if (map[src] ==
nullptr) {
527 m_orig[map[src] = m_graph.newNode()] = S.
original(e->source());
530 if (map[tgt] ==
nullptr) {
531 m_orig[map[tgt] = m_graph.newNode()] = S.
original(e->target());
539 edge lastCreatedEdge = m_graph.newEdge(map[src], map[tgt]);
540 m_real[lastCreatedEdge] =
nullptr;
541 traversingPath(S, e, m_mincut[lastCreatedEdge], mapAux,
542 lastCreatedEdge, weight, minSTCutModule);
546 edge lastCreatedEdge = m_graph.newEdge(map[src], map[tgt]);
547 m_real[lastCreatedEdge] = S.
realEdge(e);
548 traversingPath(S, e, m_mincut[lastCreatedEdge], mapAux,
549 lastCreatedEdge, weight, minSTCutModule);
554 if (weight !=
nullptr) {
555 for (
edge e : m_graph.edges) {
557 for (
auto cutEdge : m_mincut[e]) {
558 cost += (*weight)[cutEdge.e];
563 for (
edge e : m_graph.edges) {
564 m_cost[e] = m_mincut[e].size();
569 m_graph.allNodes(allNodes);
574 getAllMultiedges(winningMultiEdges, losingMultiEdges);
575 while (!winningMultiEdges.
empty() && !losingMultiEdges.
empty()) {
579 int sizeOfWinCut = m_mincut[winningMultiEdge].size();
580 int sizeOfLosCut = m_mincut[losingMultiEdge].size();
583 glue(winningMultiEdge, losingMultiEdge);
584 glueMincuts(winningMultiEdge, losingMultiEdge);
586 OGDF_ASSERT(m_mincut[winningMultiEdge].size() == sizeOfWinCut + sizeOfLosCut);
587 delete m_underlyingGraphs[losingMultiEdge];
588 delete m_mapV[losingMultiEdge];
589 delete m_mapE[losingMultiEdge];
590 m_real[winningMultiEdge] =
nullptr;
591 m_real[losingMultiEdge] =
nullptr;
592 m_graph.delEdge(losingMultiEdge);
595 for (
node v : allNodes) {
602 if (m_cost[inEdge] > m_cost[outEdge]) {
603 std::swap(inEdge, outEdge);
607 glue(inEdge, outEdge);
609 m_real[inEdge] =
nullptr;
610 m_real[outEdge] =
nullptr;
613 adjEntry adjTarget = (outEdge->target() == v ? outEdge->adjSource()->cyclicSucc()
614 : outEdge->adjTarget()->cyclicSucc());
615 if (inEdge->
target() != v) {
616 adjSource = adjTarget;
620 delete m_underlyingGraphs[outEdge];
621 delete m_mapV[outEdge];
622 delete m_mapE[outEdge];
627 if (nonPlanarityGuaranteed) {
632 template<
typename Cost>
637 mark.
init(tree,
true);
644 if (degree[v] <= 1) {
653 if (m_T.typeOf(v) != SPQRTree::NodeType::RNode ||
isPlanar(m_T.skeleton(v).getGraph())) {
667 if (degree[w] == 1) {
682 template<
typename Cost>
692 Graph &H = *h_pointer;
710 const Skeleton &S = m_T.skeleton(current);
719 if (mapV[src] ==
nullptr) {
721 mapV[src] = H.newNode();
722 mapV_src[mapV[src]] = src;
724 if (mapV[tgt] ==
nullptr) {
726 mapV[tgt] = H.newNode();
727 mapV_src[mapV[tgt]] = tgt;
730 edge e_new = H.newEdge(mapV[src], mapV[tgt]);
771 H.sort(e_st->
source(), adjListFront);
778 H.sort(e_st->
target(), adjListFront);
783 if (weight_src !=
nullptr) {
785 for (
edge e : H.edges) {
787 weight[e] = (*weight_src)[mapE_src[e]];
790 minSTCutModule->
call(H, weight, e_st->
source(), e_st->
target(), edgeList, e_st);
794 auto it = edgeList.
begin();
795 for (;it != edgeList.
end(); it++) {
805 OGDF_ASSERT(m_underlyingGraphs[coreEdge] ==
nullptr);
806 m_underlyingGraphs[coreEdge] = h_pointer;
808 m_mapE[coreEdge] = mapE_src_pointer;
810 m_mapV[coreEdge] = mapV_src_pointer;
812 for (
node v : H.nodes) {
815 for (
edge e : H.edges) {
819 for (
node v : nodes) {
824 template<
typename Cost>
826 winningEdges.
clear();
834 for (it = ++it; it.
valid(); ++it, ePrev = e) {
836 if (minIndex[ePrev] == minIndex[e] && maxIndex[ePrev] == maxIndex[e]) {
843 template<
typename Cost>
848 bool thisIsAboutAPNode =
false;
850 thisIsAboutAPNode =
true;
854 node sWinner = m_sNode[eWinner];
855 node tWinner = m_tNode[eWinner];
856 node sLoser = m_sNode[eLoser];
857 node tLoser = m_tNode[eLoser];
901 for (
node v : allNodesButSt) {
915 for (
node v : allNodes) {
916 map.
reorder(v, sameDirection, (tLoser == v && thisIsAboutAPNode));
918 if (!thisIsAboutAPNode) {
934 template<
typename Cost>
941 m_endGraph = &planarGraph;
942 m_planarCore = &planarCore;
943 OGDF_ASSERT(!pCisPlanar || m_planarCore->genus() == 0);
945 m_endGraph->createEmpty(*m_pOriginal);
947 m_pOriginal->allNodes(allNodes);
949 m_endGraph->initByNodes(allNodes, eCopy);
952 for (
node v : m_endGraph->nodes) {
961 for (
node v : m_planarCore->nodes) {
962 if (m_planarCore->isDummy(v)) {
968 node coreNode = m_planarCore->original(v);
971 edge coreEdge = m_planarCore->original(adjPC->
theEdge());
974 node stNode = (mapV[m_sNode[coreEdge]] == original(coreNode) ? m_sNode[coreEdge] : m_tNode[coreEdge]);
978 newOrder.
pushBack(m_endGraph->copy(mapE[adjEmb->
theEdge()])->adjSource());
980 newOrder.
pushBack(m_endGraph->copy(mapE[adjEmb->
theEdge()])->adjTarget());
984 m_endGraph->sort(m_endGraph->copy(original(coreNode)), newOrder);
987 for (
edge e: m_graph.edges) {
993 for (
edge e : m_graph.edges) {
998 normalizeCutEdgeDirection(e);
1001 splitEdgeIntoSections(e, splitdummies);
1006 for (
node v : m_planarCore->nodes) {
1007 if (m_planarCore->isDummy(v)) {
1013 removeSplitdummies(splitdummies);
1014 for (
edge e : m_graph.edges) {
1015 normalizeCutEdgeDirection(e);
1020 template<
typename Cost>
1022 for (
auto cutE : m_mincut[coreEdge]) {
1024 for (
edge e : m_endGraph->chain(cutE.e)) {
1025 m_endGraph->reverseEdge(e);
1031 template<
typename Cost>
1033 for (
node v : splitdummies) {
1034 edge eIn = v->firstAdj()->theEdge();
1035 edge eOut = v->lastAdj()->theEdge();
1036 if (eIn->
target() == v) {
1037 m_endGraph->unsplit(eIn, eOut);
1039 m_endGraph->unsplit(eOut, eIn);
1044 template<
typename Cost>
1047 int chainSize = chain.
size();
1048 while (chainSize > 2) {
1049 for (CutEdge cutEdge : mincut(e)) {
1050 splitdummies.
pushBack(m_endGraph->split(m_endGraph->copy(cutEdge.e))->source());
1055 for (CutEdge cutEdge : mincut(e)) {
1056 if (chain.
size() < 3) {
1057 OGDF_ASSERT(m_endGraph->chain(cutEdge.e).size() == 1);
1061 OGDF_ASSERT(m_endGraph->original(m_endGraph->chain(cutEdge.e).front()) == cutEdge.e);
1066 template<
typename Cost>
1068 const Graph &embG = *m_underlyingGraphs[e];
1077 for (
auto it = mapE_toOrig.
begin(); it != mapE_toOrig.
end(); it++) {
1081 mapA_toFinal[it.key()->adjSource()] = m_endGraph->chain(*it).front()->adjSource();
1082 mapA_toFinal[it.key()->adjTarget()] = m_endGraph->chain(*it).back()->adjTarget();
1084 node s(m_sNode[e]), t(m_tNode[e]);
1089 for (
node v : nodesOfEmb) {
1090 if (v == s || v == t) {
1094 for (
adjEntry adj = v->firstAdj(); adj; adj = adj->
succ()) {
1095 rightAdjOrder.
pushBack(mapA_toFinal[adj]);
1097 m_endGraph->sort(m_endGraph->copy(mapV_toOrig[v]), rightAdjOrder);
1101 template<
typename Cost>
1111 while (e1->
target() != v) {
1115 while (e2->
target() != v) {
1125 getMincut(e1, e1cut);
1127 getMincut(e2, e2cut);
1133 for (
int i = 0; i < e1cut.size(); i++) {
1134 auto it1 = e1cut.get(i);
1135 edge crossingEdge = *it1;
1136 for (
int j = 0; j < e2cut.
size(); j++) {
1137 auto it2 = e2cut.
get(j);
1138 edge crossedEdge = *it2;
1139 m_endGraph->insertCrossing(*it1, crossedEdge,
true);
1145 e1cut.insertAfter(crossingEdge, it1);
1150 template<
typename Cost>
1156 List<edge> chain = m_planarCore->chain(m_planarCore->original(e));
1161 for (CutEdge eCut : mincut(m_planarCore->original(e))) {
1165 auto it = m_endGraph->chain(eCut.e).begin();
1166 for (
int i = 0; i < chain.
pos(chain.
search(e)); i++) {
1168 while ((*it)->source()->degree() == 4) {
1178 template<
typename Cost>
1196 for (
auto cutEit = losecut.
begin(); cutEit != losecut.
end(); cutEit++) {
1197 newLosecut.
pushBack(CutEdge((*cutEit).e, !(*cutEit).dir));
1199 losecut = newLosecut;
1202 wincut.
conc(losecut);
1203 m_mincut[eWinner] = wincut;
1204 m_cost[eWinner] += m_cost[eLoser];
1207 template<
typename Cost>
1209 : m_npc(npc), m_eWinner(eWinner), m_eLoser(eLoser)
1243 template<
typename Cost>
1247 (*m_mapEwinner)[newEdge] = (*m_mapEloser)[loser];
1250 template<
typename Cost>
1253 (*m_mapVwinner)[winner] = (*m_mapVloser)[loser];
1256 template<
typename Cost>
1260 (*m_mapVwinner)[newNode] = (*m_mapVloser)[loser];
1263 template<
typename Cost>
1283 if (!sameDirection) {
1286 if (adjOrder.
size() == rightAdjOrder.
size()) {
1287 adjOrder = rightAdjOrder;
1290 adjOrder.
split(adjOrder.
get(adjOrder.
size() - rightAdjOrder.
size()), adjOrder, helpList);
1291 if (isTNodeOfPNode) {
1294 adjOrder.
conc(rightAdjOrder);
node target() const
Returns the target node of the edge.
void markCore(NodeArray< bool > &mark)
Marks all nodes of the underlying SPQRTree and prunes planar leaves until the marked nodes span a tre...
void clear()
Removes all elements from the list.
iterator begin()
Returns an iterator to the first entry in the edge array.
const Graph & getLoserGraph() const
Getter for m_gLoser.
virtual edge realEdge(edge e) const =0
Returns the real edge that corresponds to skeleton edge e.
node tNode(edge e) const
Returns the t node of the skeleton of the st-component represented by the core edge e = (s...
virtual node twinTreeNode(edge e) const =0
Returns the tree node in T containing the twin edge of skeleton edge e.
Min-st-cut algorithm, that calculates the cut by calculating the shortest path between the faces adja...
void removePseudoCrossings()
Removes all crossing nodes which are actually only two "touching" edges.
NodeArray< node > m_mapV_l2w
A map from the nodes of the loser graph to their new home in the winner graph.
The parameterized class Queue<E> implements list-based queues.
edge theEdge() const
Returns the edge associated with this adjacency entry.
bool valid() const
Returns true iff the iterator points to an element.
const Graph * graphOf() const
Returns a pointer to the associated graph.
iterator append(const E &x)
Adds x at the end of queue.
void getMincut(edge e, List< edge > &cut)
Get the mincut of e with respect to its position in the chain of its original edge.
EdgeArray< EdgeArray< edge > * > m_mapE
The mapping between the edges of each embedding and their original.
iterator pushBack(const E &x)
Adds element x at the end of the list.
Data type for general directed graphs (adjacency list representation).
NodeArray< node > m_orig
Corresp. original node.
adjEntry adjSource() const
Returns the corresponding adjacancy entry at source node.
NonPlanarCore< Cost > & m_npc
The NonPlanarCore on which this instance operates.
void sort(node v, const ADJ_ENTRY_LIST &newOrder)
Sorts the adjacency list of node v according to newOrder.
void init()
Reinitializes the array. Associates the array with no graph.
void conc(List< E > &L2)
Appends L2 to this list and makes L2 empty.
const EdgeArray< edge > * m_mapEloser
A map from the edges of the loser graph to the original graph, to denote the original of each node...
const Graph & getGraph() const
Returns a reference to the skeleton graph M.
void normalizeCutEdgeDirection(edge coreEdge)
Every edge of coreEdge's cut that doesn't go the same direction as coreEdge gets reversed.
int degree() const
Returns the degree of the node (indegree + outdegree).
node original(node v) const
Returns the node of the original graph, which is represented by v in the core.
GraphCopy * m_endGraph
A pointer to a copy of the original graph, in which crossings are replaced by dummy nodes...
iterator begin()
Returns an iterator to the first element of the list.
void split(iterator it, List< E > &L1, List< E > &L2, Direction dir=Direction::before)
Splits the list at element it into lists L1 and L2.
iterator insertAfter(const E &x, iterator it)
Inserts element x after it.
EdgeArray< edge > m_mapE_l2w
A map from the edges of the loser graph to their new home in the winner graph.
void glue(edge eWinner, edge eLoser)
Glues together the skeletons of eWinner and eLoser for pruned P- and S-nodes.
virtual node original(node v) const =0
Returns the vertex in the original graph G that corresponds to v.
void reorder(node vLoser, bool sameDirection, bool isTNodeOfPNode)
This method reorders the adjacency order of vLoser's counterpart in the winner graph according to the...
void glueMincuts(edge eWinner, edge eLoser)
Glues together the mincuts of the winner and the loser edge.
Dynamic arrays indexed with adjacency entries.
StaticSPQRTree m_T
The SPQRTree that represents the original graph.
Encapsulates a pointer to an ogdf::SList element.
iterator end()
Returns an iterator to one-past-last entry in the edge array.
const Graph & core() const
Returns the non-planar core.
GraphCopy const * m_planarCore
A pointer to a copy of the core, in which crossings are replaced by dummy nodes.
bool isParallelUndirected(edge e) const
Returns true iff edge e is parallel to this (undirected) edge (or if it is the same edge) ...
void call(const Graph &G, const EdgeArray< TCost > *weight, MinSTCutModule< TCost > *minSTCutModule, bool nonPlanarityGuaranteed)
The private method behind the constructors.
adjEntry cyclicSucc() const
Returns the cyclic successor in the adjacency list.
TCost cost(edge e) const
Returns the cost of e, which is the number of original edges crossed, if e is crossed, i.e.
Skeleton graphs of nodes in an SPQR-tree.
EdgeArray< edge > m_real
Corresp. original edge (0 if virtual)
void del(iterator it)
Removes it from the list.
void parallelFreeSortUndirected(const Graph &G, SListPure< edge > &edges, EdgeArray< int > &minIndex, EdgeArray< int > &maxIndex)
Sorts the edges of G such that undirected parallel edges come after each other in the list...
EdgeArray< NodeArray< node > * > m_mapV
The mapping between the nodes of each embedding and their original.
const EdgeArray< TCost > & cost() const
Returns the costs of the edges in the core, which is the number of original edges crossed...
Graph * m_gWinner
The graph that eWinner represents.
node sNode(edge e) const
Returns the s node of the skeleton of the st-component represented by the core edge e = (s...
virtual bool direction(edge e)
Returns the direction of e in the cut.
void retransform(const GraphCopy &planarCore, GraphCopy &planarGraph, bool pCisPlanar=true)
Inserts the crossings from a copy of the core into a copy of the original graph.
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
Dynamic arrays indexed with nodes.
bool planarEmbed(Graph &G)
Returns true, if G is planar, false otherwise. If true is returned, G will be planarly embedded...
const Graph * m_gLoser
The graph that eLoser represents.
void reverse()
Reverses the order of the list elements.
EdgeArray< edge > * m_mapEwinner
A map from the edges of the winner graph to the original graph, to denote the original of each edge...
const bool dir
true, iff the edge is directed from the s partition to the t partion
iterator begin()
Returns an iterator to the first element of the list.
iterator pushFront(const E &x)
Adds element x at the beginning of the list.
Declaration of class StaticSPQRTree.
iterator pushBack(const E &x)
Adds element x at the end of the list.
Min-st-cut algorithm, that calculates the cut by doing a depth first search over the dual graph of of...
const List< CutEdge > & mincut(edge e) const
Returns the mincut of the st-component represented by e.
MinSTCutDijkstra class template.
void getAllMultiedges(List< edge > &winningEdges, List< edge > &losingEdges)
Checks for multiedges in the core.
const_reference front() const
Returns a const reference to the first element.
edge newEdge(node v, node w)
Creates a new edge (v,w) and returns it.
bool isInvertedDirected(edge e) const
Returns true iff edge e is an inverted edge to this (directed) edge.
iterator end()
Returns an iterator to one-past-last element of the list.
Declaration and implementation of list-based queues (classes QueuePure<E> and Queue<E>).
const NodeArray< node > * m_mapVloser
A map from the nodes of the loser graph to the original graph, to denote the original of each node...
void splitEdgeIntoSections(edge e, List< node > &splitdummies)
To be able to insert crossings correctly, an end graph edge ought to be split into n-1 sections if n ...
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.
bool isBiconnected(const Graph &G, node &cutVertex)
Returns true iff G is biconnected.
node twinNode() const
Returns the associated node of the corresponding adjacency entry (shorthand for twin()->theNode()).
Class for the representation of edges.
E popFrontRet()
Removes the first element from the list and returns it.
bool empty() const
Returns true iff the queue is empty.
void allAdjEntries(ADJLIST &adjList) const
Returns a list with all adjacency entries of this node.
Copies of graphs supporting edge splitting.
const_iterator get(int pos) const
Returns a const iterator pointing to the element at position pos.
EdgeArray< TCost > m_cost
Costs to cross each edge of the core.
adjEntry lastAdj() const
Returns the last entry in the adjacency list.
List< edge > original(edge e) const
Returns the edges of the original graph, which are represented by e in the core.
Class for the representation of nodes.
const edge m_eWinner
The core edge that will survive.
CutEdge(edge paramEdge, bool directed)
EdgeArray< List< CutEdge > > m_mincut
Traversing path for an edge in the core.
void removeSplitdummies(List< node > &splitdummies)
After inserting the crossings, the end graph edges don't need to be partitioned anymore so the splitd...
void importEmbedding(edge e)
This method asserts that all parts of the end graph that are represented by edge e internally have th...
void mapLoserToNewWinnerEdge(edge eInLoser)
A mapping from the eInLoser graph to a new edge in the winner graph is created.
node treeNode() const
Returns the corresponding node in the owner tree T to which S belongs.
EdgeArray< node > m_sNode
The s node of the st-component of a core edge.
const Graph & originalGraph() const
Returns the original graph.
Linear-time implementation of static SPQR-trees.
int pos(const_iterator it) const
Returns the position (starting with 0) of iterator it in the list.
bool removeFirst(const E &x)
Removes the first occurrence of x (if any) from the list.
Non-planar core reduction.
adjEntry succ() const
Returns the successor in the adjacency list.
Struct to represent an edge that needs to be crossed in order to cross an st-component.
int size() const
Returns the number of elements in the list.
void mapLoserToNewWinnerNode(node vInLoser)
A mapping from the vInLoser to a new node in the winner graph is created.
Declaration of simple graph algorithms.
EdgeArray< edge > * mapE(edge e) const
Returns a map from the edges of the st-component represented by the core edge e to the original graph...
void allNodes(CONTAINER &nodeContainer) const
Returns a container with all nodes of the graph.
NonPlanarCore(const Graph &G, bool nonPlanarityGuaranteed=false)
The unweighted version of the Algorithm call and constructor.
NodeArray< node > * m_mapVwinner
A map from the nodes of the winner graph to the original graph, to denote the original of each edge...
node source() const
Returns the source node of the edge.
EdgeArray< Graph * > m_underlyingGraphs
The graph for the underlying skeleton of a virtual edge in the core.
This is a helper class to make the glueing of two edges simpler.
EdgeArray< node > m_tNode
The t node of the st-component of a core edge.
for every hyperedge e a minimal subcubic tree connecting all hypernodes incident with e together is a...
void concFront(List< E > &L2)
Prepends L2 to this list and makes L2 empty.
The namespace for all OGDF objects.
int numberOfNodes() const
Returns the number of nodes in the graph.
void mapLoserToWinnerNode(node vInLoser, node vInWinner)
A mapping from the vInLoser to the vInWinner is created.
E pop()
Removes front element and returns it.
node newNode()
Creates a new node and returns it.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
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.
adjEntry firstAdj() const
Returns the first entry in the adjaceny list.
void inflateCrossing(node v)
The crossing denoted by dummy node v from the planarized copy of the core get inserted into the end g...
void traversingPath(const Skeleton &Sv, edge eS, List< CutEdge > &path, NodeArray< node > &mapV, edge coreEdge, const EdgeArray< TCost > *weight_src, MinSTCutModule< TCost > *minSTCutModule)
Computes the traversing path for a given edge and the unmarked tree rooted in the node of eS and save...
bool isVirtual(edge e) const
True iff the edge e in the core represents more than one orginal edge and therefore is virtual...
Combinatorial embeddings of planar graphs with modification functionality.
ListConstIterator< E > search(const E &e) const
Scans the list for the specified element and returns an iterator to the first occurrence in the list...
const Graph * m_pOriginal
The original graph.
const edge m_eLoser
The core edge that will be deleted.
Declaration of min-st-cut algorithm which calculates the min-st-cut of an st-planar graph by doing a ...
adjEntry adjTarget() const
Returns the corresponding adjacancy entry at target node.
node getWinnerNodeOfLoserNode(node v) const
Getter for m_mapV_l2w.
bool empty() const
Returns true iff the list is empty.
node theNode() const
Returns the node whose adjacency list contains this element.
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
QueueEntry(node p, node v)
edge realEdge(edge e) const
Returns the edge of the orginal graph, which is represented by e or nullptr iff e is virtual...
virtual bool isVirtual(edge e) const =0
Returns true iff e is a virtual edge.
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.