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
513 if(mark[v] ==
false){
527 if(map[src] ==
nullptr){
528 m_orig[map[src] = m_graph.newNode()] = S.
original(e->source());
531 if(map[tgt] ==
nullptr){
532 m_orig[map[tgt] = m_graph.newNode()] = S.
original(e->target());
538 if(mark[w] ==
false){
540 edge lastCreatedEdge = m_graph.newEdge(map[src], map[tgt]);
541 m_real[lastCreatedEdge] =
nullptr;
542 traversingPath(S, e, m_mincut[lastCreatedEdge], mapAux,
543 lastCreatedEdge, weight, minSTCutModule);
547 edge lastCreatedEdge = m_graph.newEdge(map[src], map[tgt]);
548 m_real[lastCreatedEdge] = S.
realEdge(e);
549 traversingPath(S, e, m_mincut[lastCreatedEdge], mapAux,
550 lastCreatedEdge, weight, minSTCutModule);
555 if(weight !=
nullptr)
557 for(
edge e : m_graph.edges)
560 for(
auto cutEdge : m_mincut[e])
562 cost += (*weight)[cutEdge.e];
567 for(
edge e : m_graph.edges)
569 m_cost[e] = m_mincut[e].size();
574 m_graph.allNodes(allNodes);
579 getAllMultiedges(winningMultiEdges, losingMultiEdges);
580 while(!winningMultiEdges.
empty() && !losingMultiEdges.
empty()){
584 int sizeOfWinCut = m_mincut[winningMultiEdge].size();
585 int sizeOfLosCut = m_mincut[losingMultiEdge].size();
588 glue(winningMultiEdge, losingMultiEdge);
589 glueMincuts(winningMultiEdge, losingMultiEdge);
591 OGDF_ASSERT(m_mincut[winningMultiEdge].size() == sizeOfWinCut + sizeOfLosCut);
592 delete m_underlyingGraphs[losingMultiEdge];
593 delete m_mapV[losingMultiEdge];
594 delete m_mapE[losingMultiEdge];
595 m_real[winningMultiEdge] =
nullptr;
596 m_real[losingMultiEdge] =
nullptr;
597 m_graph.delEdge(losingMultiEdge);
600 for(
node v : allNodes){
607 if(m_cost[inEdge] > m_cost[outEdge])
609 swap(inEdge, outEdge);
613 glue(inEdge, outEdge);
615 m_real[inEdge] =
nullptr;
616 m_real[outEdge] =
nullptr;
619 adjEntry adjTarget = (outEdge->target() == v ? outEdge->adjSource()->cyclicSucc()
620 : outEdge->adjTarget()->cyclicSucc());
621 if(inEdge->
target() != v){
622 adjSource = adjTarget;
626 delete m_underlyingGraphs[outEdge];
627 delete m_mapV[outEdge];
628 delete m_mapE[outEdge];
633 if(nonPlanarityGuaranteed){
638 template<
typename Cost>
643 mark.
init(tree,
true);
659 if(m_T.typeOf(v) != SPQRTree::NodeType::RNode ||
660 isPlanar(m_T.skeleton(v).getGraph())){
689 template<
typename Cost>
717 const Skeleton &S = m_T.skeleton(current);
726 if(mapV[src] ==
nullptr){
728 mapV[src] = H.newNode();
729 mapV_src[mapV[src]] = src;
731 if(mapV[tgt] ==
nullptr){
733 mapV[tgt] = H.newNode();
734 mapV_src[mapV[tgt]] = tgt;
737 edge e_new = H.newEdge(mapV[src], mapV[tgt]);
778 H.sort(e_st->
source(), adjListFront);
785 H.sort(e_st->
target(), adjListFront);
790 if(weight_src !=
nullptr) {
792 for (
edge e : H.edges) {
794 weight[e] = (*weight_src)[mapE_src[e]];
797 minSTCutModule->
call(H, weight, e_st->
source(), e_st->
target(), edgeList, e_st);
801 auto it = edgeList.
begin();
802 for(;it != edgeList.
end(); it++) {
812 OGDF_ASSERT(m_underlyingGraphs[coreEdge] ==
nullptr);
813 m_underlyingGraphs[coreEdge] = h_pointer;
815 m_mapE[coreEdge] = mapE_src_pointer;
817 m_mapV[coreEdge] = mapV_src_pointer;
819 for(
node v : H.nodes){
822 for(
edge e : H.edges){
831 template<
typename Cost>
833 winningEdges.
clear();
841 for(it = ++it; it.
valid(); ++it, ePrev = e){
843 if(minIndex[ePrev] == minIndex[e] && maxIndex[ePrev] == maxIndex[e]){
850 template<
typename Cost>
855 bool thisIsAboutAPNode =
false;
858 thisIsAboutAPNode =
true;
862 node sWinner = m_sNode[eWinner];
863 node tWinner = m_tNode[eWinner];
864 node sLoser = m_sNode[eLoser];
865 node tLoser = m_tNode[eLoser];
909 for(
node v : allNodesButSt){
923 for(
node v : allNodes){
924 map.
reorder(v, sameDirection, (tLoser == v && thisIsAboutAPNode));
926 if(!thisIsAboutAPNode){
942 template<
typename Cost>
949 m_endGraph = &planarGraph;
950 m_planarCore = &planarCore;
951 OGDF_ASSERT(!pCisPlanar || m_planarCore->genus() == 0);
953 m_endGraph->createEmpty(*m_pOriginal);
955 m_pOriginal->allNodes(allNodes);
957 m_endGraph->initByNodes(allNodes, eCopy);
960 for(
node v : m_endGraph->nodes){
969 for(
node v : m_planarCore->nodes){
970 if(m_planarCore->isDummy(v)){
976 node coreNode = m_planarCore->original(v);
979 edge coreEdge = m_planarCore->original(adjPC->
theEdge());
982 node stNode = (mapV[m_sNode[coreEdge]] == original(coreNode) ? m_sNode[coreEdge] : m_tNode[coreEdge]);
986 newOrder.
pushBack(m_endGraph->copy(mapE[adjEmb->
theEdge()])->adjSource());
988 newOrder.
pushBack(m_endGraph->copy(mapE[adjEmb->
theEdge()])->adjTarget());
992 m_endGraph->sort(m_endGraph->copy(original(coreNode)), newOrder);
995 for(
edge e: m_graph.edges) {
1001 for (
edge e : m_graph.edges) {
1006 normalizeCutEdgeDirection(e);
1009 splitEdgeIntoSections(e, splitdummies);
1014 for (
node v : m_planarCore->nodes) {
1015 if (m_planarCore->isDummy(v)) {
1021 removeSplitdummies(splitdummies);
1022 for (
edge e : m_graph.edges) {
1023 normalizeCutEdgeDirection(e);
1028 template<
typename Cost>
1030 for(
auto cutE : m_mincut[coreEdge]) {
1032 for(
edge e : m_endGraph->chain(cutE.e)) {
1033 m_endGraph->reverseEdge(e);
1039 template<
typename Cost>
1041 for(
node v : splitdummies){
1042 edge eIn = v->firstAdj()->theEdge();
1043 edge eOut = v->lastAdj()->theEdge();
1045 m_endGraph->unsplit(eIn, eOut);
1047 m_endGraph->unsplit(eOut, eIn);
1052 template<
typename Cost>
1055 int chainSize = chain.
size();
1056 while(chainSize > 2){
1057 for(CutEdge cutEdge : mincut(e)){
1058 splitdummies.
pushBack(m_endGraph->split(m_endGraph->copy(cutEdge.e))->source());
1063 for(CutEdge cutEdge : mincut(e)){
1064 if(chain.
size() < 3){
1065 OGDF_ASSERT(m_endGraph->chain(cutEdge.e).size() == 1);
1069 OGDF_ASSERT(m_endGraph->original(m_endGraph->chain(cutEdge.e).front()) == cutEdge.e);
1074 template<
typename Cost>
1076 const Graph &embG = *m_underlyingGraphs[e];
1085 for(
auto it = mapE_toOrig.
begin(); it != mapE_toOrig.
end(); it++){
1089 mapA_toFinal[it.key()->adjSource()] = m_endGraph->chain(*it).front()->adjSource();
1090 mapA_toFinal[it.key()->adjTarget()] = m_endGraph->chain(*it).back()->adjTarget();
1092 node s(m_sNode[e]), t(m_tNode[e]);
1097 for(
node v : nodesOfEmb){
1098 if(v == s || v == t){
1102 for(
adjEntry adj = v->firstAdj(); adj; adj = adj->
succ()){
1103 rightAdjOrder.
pushBack(mapA_toFinal[adj]);
1105 m_endGraph->sort(m_endGraph->copy(mapV_toOrig[v]), rightAdjOrder);
1109 template<
typename Cost>
1119 while(e1->
target() != v){
1123 while(e2->
target() != v){
1133 getMincut(e1, e1cut);
1135 getMincut(e2, e2cut);
1141 for(
int i = 0; i < e1cut.size(); i++){
1142 auto it1 = e1cut.get(i);
1143 edge crossingEdge = *it1;
1144 for(
int j = 0; j < e2cut.
size(); j++){
1145 auto it2 = e2cut.
get(j);
1146 edge crossedEdge = *it2;
1147 m_endGraph->insertCrossing(*it1, crossedEdge,
true);
1153 e1cut.insertAfter(crossingEdge, it1);
1158 template<
typename Cost>
1164 List<edge> chain = m_planarCore->chain(m_planarCore->original(e));
1169 for(CutEdge eCut : mincut(m_planarCore->original(e))) {
1173 auto it = m_endGraph->chain(eCut.e).begin();
1174 for(
int i = 0; i < chain.
pos(chain.
search(e)); i++){
1176 while((*it)->source()->degree() == 4){
1186 template<
typename Cost>
1204 for(
auto cutEit = losecut.
begin(); cutEit != losecut.
end(); cutEit++) {
1205 newLosecut.
pushBack(CutEdge((*cutEit).e, !(*cutEit).dir));
1207 losecut = newLosecut;
1210 wincut.
conc(losecut);
1211 m_mincut[eWinner] = wincut;
1212 m_cost[eWinner] += m_cost[eLoser];
1215 template<
typename Cost>
1250 template<
typename Cost>
1254 (*m_mapEwinner)[newEdge] = (*m_mapEloser)[loser];
1257 template<
typename Cost>
1260 (*m_mapVwinner)[winner] = (*m_mapVloser)[loser];
1263 template<
typename Cost>
1267 (*m_mapVwinner)[newNode] = (*m_mapVloser)[loser];
1270 template<
typename Cost>
1293 if(adjOrder.
size() == rightAdjOrder.
size()){
1294 adjOrder = rightAdjOrder;
1297 adjOrder.
split(adjOrder.
get(adjOrder.
size() - rightAdjOrder.
size()), adjOrder, helpList);
1301 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.
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.
Declaration of min-st-cut algorithm which calculates the min-st-cut of an st-planar graph by doing di...
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.
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.
void allNodes(NODELIST &nodeList) const
Returns a list with all nodes of the graph.
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...
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.