This class collects information about Kuratowski Subdivisions which is used for extraction later. More...
#include <ogdf/planarity/boyer_myrvold/FindKuratowskis.h>
Public Member Functions | |
FindKuratowskis (BoyerMyrvoldPlanar *bm) | |
Constructor. More... | |
~FindKuratowskis () | |
Destructor. More... | |
void | addKuratowskiStructure (const node currentNode, const node root, const node stopx, const node stopy) |
Adds Kuratowski Structure on current node with root root and stopping nodes stopx and stopy . More... | |
SListPure< KuratowskiStructure > & | getAllKuratowskis () |
Get-method for the list of all KuratowskiStructures. More... | |
const SListPure< KuratowskiStructure > & | getAllKuratowskis () const |
Constant get-method for the list of all KuratowskiStructures. More... | |
FindKuratowskis & | operator= (const FindKuratowskis &)=delete |
Protected Member Functions | |
void | extractExternalFacePath (SListPure< adjEntry > &externalFacePath, const ArrayBuffer< adjEntry > &highestFacePath, int marker, int highMarker) |
Extracts externalFacePath in direction CCW and splits highestFacePath in highestXYPaths. More... | |
void | extractExternalSubgraph (const node stop, int root, SListPure< int > &externalStartnodes, SListPure< node > &externalEndnodes) |
Extracts external subgraph from node stop to ancestors of node with DFI root (without bundles) More... | |
void | extractExternalSubgraphBundles (const node stop, int root, SListPure< edge > &externalSubgraph, int nodeMarker) |
Extracts external subgraph from node stop to ancestors of node with DFI root (with bundles) More... | |
void | extractHighestFacePath (ArrayBuffer< adjEntry > &highestFacePath, int marker) |
Extracts the highestFace Path of the bicomp containing both stopping nodes. More... | |
void | extractPertinentSubgraph (SListPure< WInfo > &W_All) |
Extracts pertinent subgraph from all wNodes to V (without bundles) More... | |
void | extractPertinentSubgraphBundles (const SListPure< WInfo > &W_All, const node V, SListPure< edge > &pertinentSubgraph, int nodeMarker) |
Extracts pertinent subgraph from all wNodes to V (with bundles) More... | |
node | findRoot (node stopX) const |
Finds root node of the bicomp containing the stopping node stopX . More... | |
const | NodeArray (&m_link)[2] |
Links to opposite adjacency entries on external face in clockwise resp. ccw order. More... | |
void | splitInMinorTypes (const SListPure< adjEntry > &externalFacePath, int marker) |
Assign pertinent nodes to the different minortypes and extracts inner externalPaths. More... | |
Protected Attributes | |
SListPure< KuratowskiStructure > | allKuratowskis |
List of all Kuratowski Structures. More... | |
KuratowskiStructure | k |
Current Kuratowski Structure. More... | |
const NodeArray< adjEntry > & | m_adjParent |
The adjEntry which goes from DFS-parent to current vertex. More... | |
NodeArray< SListPure< adjEntry > > & | m_backedgeFlags |
Holds information, if node is the source of a backedge. More... | |
const bool | m_bundles |
If true, bundles are extracted, otherwise single paths? More... | |
const NodeArray< int > & | m_dfi |
The one and only DFI-NodeArray. More... | |
EdgeArray< BoyerMyrvoldEdgeType > & | m_edgeType |
Contains the type of each edge. More... | |
const int & | m_embeddingGrade |
The embedding grade. More... | |
Graph & | m_g |
Input graph. More... | |
NodeArray< WInfo * > | m_getWInfo |
Links appropriate WInfo to node. More... | |
const NodeArray< int > & | m_highestSubtreeDFI |
The highest DFI in a subtree with node as root. More... | |
const NodeArray< int > & | m_leastAncestor |
The DFI of the least ancestor node over all backedges. More... | |
NodeArray< int > & | m_lowPoint |
The lowpoint of each node. More... | |
const Array< node > & | m_nodeFromDFI |
Returns appropriate node from given DFI. More... | |
int | m_nodeMarker |
Value used as marker for visited nodes etc. More... | |
NodeArray< int > & | m_numUnembeddedBackedgesInBicomp |
Stores for each (virtual) bicomp root how many backedges to its bicomp still have to be embedded. More... | |
NodeArray< SListPure< node > > & | m_pertinentRoots |
List of virtual bicomp roots, that are pertinent to the current embedded node. More... | |
const EdgeArray< node > & | m_pointsToRoot |
Identifies the rootnode of the child bicomp the given backedge points to. More... | |
const NodeArray< node > & | m_realVertex |
Link to non-virtual vertex of a virtual Vertex. More... | |
const NodeArray< ListPure< node > > & | m_separatedDFSChildList |
A list to all separated DFS-children of node. More... | |
NodeArray< int > | m_wasHere |
Array maintaining visited bits on each node. More... | |
BoyerMyrvoldPlanar * | pBM |
Link to class BoyerMyrvoldPlanar. More... | |
This class collects information about Kuratowski Subdivisions which is used for extraction later.
Definition at line 187 of file FindKuratowskis.h.
|
explicit |
Constructor.
|
inline |
Destructor.
Definition at line 193 of file FindKuratowskis.h.
void ogdf::FindKuratowskis::addKuratowskiStructure | ( | const node | currentNode, |
const node | root, | ||
const node | stopx, | ||
const node | stopy | ||
) |
Adds Kuratowski Structure on current node with root root
and stopping nodes stopx
and stopy
.
|
protected |
Extracts externalFacePath in direction CCW and splits highestFacePath in highestXYPaths.
|
protected |
Extracts external subgraph from node stop
to ancestors of node with DFI root
(without bundles)
|
protected |
Extracts external subgraph from node stop
to ancestors of node with DFI root
(with bundles)
|
protected |
Extracts the highestFace Path of the bicomp containing both stopping nodes.
Extracts pertinent subgraph from all wNodes to V (without bundles)
|
protected |
Extracts pertinent subgraph from all wNodes to V (with bundles)
Finds root node of the bicomp containing the stopping node stopX
.
|
inline |
Get-method for the list of all KuratowskiStructures.
Definition at line 200 of file FindKuratowskis.h.
|
inline |
Constant get-method for the list of all KuratowskiStructures.
Definition at line 203 of file FindKuratowskis.h.
|
protected |
Links to opposite adjacency entries on external face in clockwise resp. ccw order.
m_link[0]=CCW, m_link[1]=CW
|
delete |
|
protected |
Assign pertinent nodes to the different minortypes and extracts inner externalPaths.
|
protected |
List of all Kuratowski Structures.
Definition at line 226 of file FindKuratowskis.h.
|
protected |
Current Kuratowski Structure.
Definition at line 229 of file FindKuratowskis.h.
The adjEntry which goes from DFS-parent to current vertex.
Definition at line 255 of file FindKuratowskis.h.
Holds information, if node is the source of a backedge.
This information refers to the adjEntries on the targetnode and is used during the walkdown
Definition at line 290 of file FindKuratowskis.h.
|
protected |
If true, bundles are extracted, otherwise single paths?
Definition at line 220 of file FindKuratowskis.h.
|
protected |
The one and only DFI-NodeArray.
Definition at line 244 of file FindKuratowskis.h.
|
protected |
Contains the type of each edge.
Definition at line 263 of file FindKuratowskis.h.
|
protected |
The embedding grade.
Definition at line 217 of file FindKuratowskis.h.
|
protected |
Input graph.
Definition at line 214 of file FindKuratowskis.h.
Links appropriate WInfo to node.
Definition at line 223 of file FindKuratowskis.h.
|
protected |
The highest DFI in a subtree with node as root.
Definition at line 269 of file FindKuratowskis.h.
|
protected |
The DFI of the least ancestor node over all backedges.
If no backedge exists, the least ancestor is the DFI of that node itself
Definition at line 260 of file FindKuratowskis.h.
|
protected |
The lowpoint of each node.
Definition at line 266 of file FindKuratowskis.h.
Returns appropriate node from given DFI.
Definition at line 247 of file FindKuratowskis.h.
|
protected |
Value used as marker for visited nodes etc.
Used during computation of the external face path and the highest x-y-path
Definition at line 234 of file FindKuratowskis.h.
|
protected |
Stores for each (virtual) bicomp root how many backedges to its bicomp still have to be embedded.
The value is set during the walkup, and it is used and decreased while embedding backedges during the walkdown.
Definition at line 284 of file FindKuratowskis.h.
List of virtual bicomp roots, that are pertinent to the current embedded node.
Definition at line 293 of file FindKuratowskis.h.
Identifies the rootnode of the child bicomp the given backedge points to.
Definition at line 277 of file FindKuratowskis.h.
Link to non-virtual vertex of a virtual Vertex.
A virtual vertex has negative DFI of the DFS-Child of related non-virtual Vertex
Definition at line 241 of file FindKuratowskis.h.
A list to all separated DFS-children of node.
The list is sorted by lowpoint values (in linear time)
Definition at line 274 of file FindKuratowskis.h.
|
protected |
Array maintaining visited bits on each node.
Definition at line 236 of file FindKuratowskis.h.
|
protected |
Link to class BoyerMyrvoldPlanar.
Definition at line 211 of file FindKuratowskis.h.