Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::CconnectClusterPlanarEmbed Class Reference

C-planarity test and embedding by Cohen, Feng and Eades. More...

#include <ogdf/cluster/CconnectClusterPlanarEmbed.h>

Public Types

enum  ErrorCode { ErrorCode::none = 0, ErrorCode::nonConnected = 1, ErrorCode::nonCConnected = 2, ErrorCode::nonPlanar = 3, ErrorCode::nonCPlanar = 4 }
 

Public Member Functions

 CconnectClusterPlanarEmbed ()
 Constructor. More...
 
virtual ~CconnectClusterPlanarEmbed ()
 Destructor. More...
 
virtual bool embed (ClusterGraph &C, Graph &G)
 Tests if a clustered graph (C, G) is C-planar and embeds it. More...
 
ErrorCode errCode ()
 

Private Types

using EmbedPQTree = booth_lueker::EmbedPQTree
 

Private Member Functions

void constructWheelGraph (ClusterGraph &C, Graph &G, cluster &parent, cluster &origCl, EmbedPQTree *T, EdgeArray< node > &outgoingTable, node superSink)
 
void copyEmbedding (ClusterGraph &Ccopy, Graph &Gcopy, ClusterGraph &C, Graph &G)
 
bool doEmbed (Graph *biconComp, NodeArray< int > &numbering, const cluster origCluster, node superSink, Graph &subGraph, EdgeArray< edge > &tableEdgesBiComp2SubGraph, EdgeArray< edge > &tableEdgesSubGraph2BiComp, NodeArray< node > &tableNodesBiComp2SubGraph)
 
void entireEmbed (Graph &biconComp, NodeArray< SListPure< adjEntry > > &entireEmbedding, NodeArray< SListIterator< adjEntry > > &adjMarker, NodeArray< bool > &mark, node v)
 
void hubControl (Graph &G, NodeArray< bool > &hubs)
 
void nonPlanarCleanup (ClusterGraph &Ccopy, Graph &Gcopy)
 
bool planarityTest (ClusterGraph &C, const cluster act, Graph &G)
 
bool preparation (Graph &subGraph, const cluster origCluster, node superSink)
 
void prepareParallelEdges (Graph &G)
 
bool preProcess (ClusterGraph &Ccopy, Graph &Gcopy)
 
void recursiveEmbed (ClusterGraph &Ccopy, Graph &Gcopy)
 

Private Attributes

private member variables for testing a cluster graph
ClusterArray< EmbedPQTree * > m_clusterPQTree
 
ErrorCode m_errorCode
 
private members for handling parallel edges
EdgeArray< ListPure< edge > > m_parallelEdges
 
EdgeArray< bool > m_isParallel
 
int m_parallelCount
 
private member variables for embedding a cluster graph
ClusterGraphm_instance
 
ClusterArray< NodeArray< SListPure< adjEntry > > * > m_clusterEmbedding
 
ClusterArray< Graph * > m_clusterSubgraph
 
ClusterArray< NodeArray< bool > * > m_clusterSubgraphHubs
 
ClusterArray< NodeArray< cluster > * > m_clusterSubgraphWheelGraph
 
ClusterArray< NodeArray< node > * > m_clusterNodeTableNew2Orig
 
ClusterArray< ClusterGraph * > m_clusterClusterGraph
 
ClusterArray< ClusterArray< cluster > * > m_clusterClusterTableOrig2New
 
NodeArray< clusterm_wheelGraphNodes
 
NodeArray< bool > m_currentHubs
 
ClusterArray< clusterm_clusterTableCopy2Orig
 
ClusterArray< clusterm_clusterTableOrig2Copy
 
ClusterArray< nodem_clusterSuperSink
 
NodeArray< nodem_nodeTableCopy2Orig
 
NodeArray< nodem_nodeTableOrig2Copy
 
EdgeArray< ArrayBuffer< edge > * > m_outgoingEdgesAnker
 
ClusterArray< EdgeArray< ArrayBuffer< edge > * > * > m_clusterOutgoingEdgesAnker
 
ClusterArray< cluster_planarity::ClusterPQContainerm_clusterPQContainer
 
ArrayBuffer< clusterm_callStack
 
ClusterArray< bool > m_unsatisfiedCluster
 

Detailed Description

C-planarity test and embedding by Cohen, Feng and Eades.

Definition at line 46 of file CconnectClusterPlanarEmbed.h.

Member Typedef Documentation

◆ EmbedPQTree

Member Enumeration Documentation

◆ ErrorCode

Enumerator
none 
nonConnected 
nonCConnected 
nonPlanar 
nonCPlanar 

Definition at line 49 of file CconnectClusterPlanarEmbed.h.

Constructor & Destructor Documentation

◆ CconnectClusterPlanarEmbed()

ogdf::CconnectClusterPlanarEmbed::CconnectClusterPlanarEmbed ( )

Constructor.

◆ ~CconnectClusterPlanarEmbed()

virtual ogdf::CconnectClusterPlanarEmbed::~CconnectClusterPlanarEmbed ( )
virtual

Destructor.

Member Function Documentation

◆ constructWheelGraph()

void ogdf::CconnectClusterPlanarEmbed::constructWheelGraph ( ClusterGraph C,
Graph G,
cluster parent,
cluster origCl,
EmbedPQTree T,
EdgeArray< node > &  outgoingTable,
node  superSink 
)
private

◆ copyEmbedding()

void ogdf::CconnectClusterPlanarEmbed::copyEmbedding ( ClusterGraph Ccopy,
Graph Gcopy,
ClusterGraph C,
Graph G 
)
private

◆ doEmbed()

bool ogdf::CconnectClusterPlanarEmbed::doEmbed ( Graph biconComp,
NodeArray< int > &  numbering,
const cluster  origCluster,
node  superSink,
Graph subGraph,
EdgeArray< edge > &  tableEdgesBiComp2SubGraph,
EdgeArray< edge > &  tableEdgesSubGraph2BiComp,
NodeArray< node > &  tableNodesBiComp2SubGraph 
)
private

◆ embed()

virtual bool ogdf::CconnectClusterPlanarEmbed::embed ( ClusterGraph C,
Graph G 
)
virtual

Tests if a clustered graph (C, G) is C-planar and embeds it.

◆ entireEmbed()

void ogdf::CconnectClusterPlanarEmbed::entireEmbed ( Graph biconComp,
NodeArray< SListPure< adjEntry > > &  entireEmbedding,
NodeArray< SListIterator< adjEntry > > &  adjMarker,
NodeArray< bool > &  mark,
node  v 
)
private

◆ errCode()

ErrorCode ogdf::CconnectClusterPlanarEmbed::errCode ( )
inline

Definition at line 57 of file CconnectClusterPlanarEmbed.h.

◆ hubControl()

void ogdf::CconnectClusterPlanarEmbed::hubControl ( Graph G,
NodeArray< bool > &  hubs 
)
private

◆ nonPlanarCleanup()

void ogdf::CconnectClusterPlanarEmbed::nonPlanarCleanup ( ClusterGraph Ccopy,
Graph Gcopy 
)
private

◆ planarityTest()

bool ogdf::CconnectClusterPlanarEmbed::planarityTest ( ClusterGraph C,
const cluster  act,
Graph G 
)
private

◆ preparation()

bool ogdf::CconnectClusterPlanarEmbed::preparation ( Graph subGraph,
const cluster  origCluster,
node  superSink 
)
private

◆ prepareParallelEdges()

void ogdf::CconnectClusterPlanarEmbed::prepareParallelEdges ( Graph G)
private

◆ preProcess()

bool ogdf::CconnectClusterPlanarEmbed::preProcess ( ClusterGraph Ccopy,
Graph Gcopy 
)
private

◆ recursiveEmbed()

void ogdf::CconnectClusterPlanarEmbed::recursiveEmbed ( ClusterGraph Ccopy,
Graph Gcopy 
)
private

Member Data Documentation

◆ m_callStack

ArrayBuffer<cluster> ogdf::CconnectClusterPlanarEmbed::m_callStack
private

Definition at line 217 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterClusterGraph

ClusterArray<ClusterGraph*> ogdf::CconnectClusterPlanarEmbed::m_clusterClusterGraph
private

Definition at line 171 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterClusterTableOrig2New

ClusterArray<ClusterArray<cluster>*> ogdf::CconnectClusterPlanarEmbed::m_clusterClusterTableOrig2New
private

Definition at line 172 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterEmbedding

ClusterArray<NodeArray<SListPure<adjEntry> >*> ogdf::CconnectClusterPlanarEmbed::m_clusterEmbedding
private

Definition at line 144 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterNodeTableNew2Orig

ClusterArray<NodeArray<node> *> ogdf::CconnectClusterPlanarEmbed::m_clusterNodeTableNew2Orig
private

Definition at line 168 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterOutgoingEdgesAnker

ClusterArray<EdgeArray<ArrayBuffer<edge>*>*> ogdf::CconnectClusterPlanarEmbed::m_clusterOutgoingEdgesAnker
private

Definition at line 208 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterPQContainer

ClusterArray<cluster_planarity::ClusterPQContainer> ogdf::CconnectClusterPlanarEmbed::m_clusterPQContainer
private

Definition at line 212 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterPQTree

ClusterArray<EmbedPQTree*> ogdf::CconnectClusterPlanarEmbed::m_clusterPQTree
private

Definition at line 120 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterSubgraph

ClusterArray<Graph*> ogdf::CconnectClusterPlanarEmbed::m_clusterSubgraph
private

Definition at line 149 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterSubgraphHubs

ClusterArray<NodeArray<bool> *> ogdf::CconnectClusterPlanarEmbed::m_clusterSubgraphHubs
private

Definition at line 155 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterSubgraphWheelGraph

ClusterArray<NodeArray<cluster> *> ogdf::CconnectClusterPlanarEmbed::m_clusterSubgraphWheelGraph
private

Definition at line 163 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterSuperSink

ClusterArray<node> ogdf::CconnectClusterPlanarEmbed::m_clusterSuperSink
private

Definition at line 194 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterTableCopy2Orig

ClusterArray<cluster> ogdf::CconnectClusterPlanarEmbed::m_clusterTableCopy2Orig
private

Definition at line 188 of file CconnectClusterPlanarEmbed.h.

◆ m_clusterTableOrig2Copy

ClusterArray<cluster> ogdf::CconnectClusterPlanarEmbed::m_clusterTableOrig2Copy
private

Definition at line 191 of file CconnectClusterPlanarEmbed.h.

◆ m_currentHubs

NodeArray<bool> ogdf::CconnectClusterPlanarEmbed::m_currentHubs
private

Definition at line 182 of file CconnectClusterPlanarEmbed.h.

◆ m_errorCode

ErrorCode ogdf::CconnectClusterPlanarEmbed::m_errorCode
private

Definition at line 123 of file CconnectClusterPlanarEmbed.h.

◆ m_instance

ClusterGraph* ogdf::CconnectClusterPlanarEmbed::m_instance
private

Definition at line 136 of file CconnectClusterPlanarEmbed.h.

◆ m_isParallel

EdgeArray<bool> ogdf::CconnectClusterPlanarEmbed::m_isParallel
private

Definition at line 129 of file CconnectClusterPlanarEmbed.h.

◆ m_nodeTableCopy2Orig

NodeArray<node> ogdf::CconnectClusterPlanarEmbed::m_nodeTableCopy2Orig
private

Definition at line 201 of file CconnectClusterPlanarEmbed.h.

◆ m_nodeTableOrig2Copy

NodeArray<node> ogdf::CconnectClusterPlanarEmbed::m_nodeTableOrig2Copy
private

Definition at line 204 of file CconnectClusterPlanarEmbed.h.

◆ m_outgoingEdgesAnker

EdgeArray<ArrayBuffer<edge>*> ogdf::CconnectClusterPlanarEmbed::m_outgoingEdgesAnker
private

Definition at line 207 of file CconnectClusterPlanarEmbed.h.

◆ m_parallelCount

int ogdf::CconnectClusterPlanarEmbed::m_parallelCount
private

Definition at line 130 of file CconnectClusterPlanarEmbed.h.

◆ m_parallelEdges

EdgeArray<ListPure<edge> > ogdf::CconnectClusterPlanarEmbed::m_parallelEdges
private

Definition at line 128 of file CconnectClusterPlanarEmbed.h.

◆ m_unsatisfiedCluster

ClusterArray<bool> ogdf::CconnectClusterPlanarEmbed::m_unsatisfiedCluster
private

Definition at line 227 of file CconnectClusterPlanarEmbed.h.

◆ m_wheelGraphNodes

NodeArray<cluster> ogdf::CconnectClusterPlanarEmbed::m_wheelGraphNodes
private

Definition at line 177 of file CconnectClusterPlanarEmbed.h.


The documentation for this class was generated from the following file: