Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T > Class Template Reference

Computes an embedding of a biconnected graph with maximum external face (plus layers approach). More...

#include <ogdf/planarity/embedder/EmbedderMaxFaceBiconnectedGraphsLayers.h>

Public Member Functions

 EmbedderMaxFaceBiconnectedGraphsLayers ()
 Creates an embedder. More...
 

Static Public Member Functions

static void compute (const Graph &G, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength, StaticSPQRTree *spqrTree, NodeArray< EdgeArray< T > > &edgeLengthSkel)
 Computes the component lengths of all virtual edges in spqrTree. More...
 
static T computeSize (const Graph &G, const node &n, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength)
 Returns the size of a maximum external face in G containing the node n. More...
 
static T computeSize (const Graph &G, const node &n, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength, StaticSPQRTree *spqrTree)
 Returns the size of a maximum external face in G containing the node n. More...
 
static T computeSize (const Graph &G, const node &n, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength, StaticSPQRTree *spqrTree, const NodeArray< EdgeArray< T > > &edgeLengthSkel)
 Returns the size of a maximum external face in G containing the node n. More...
 
static T computeSize (const Graph &G, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength)
 Returns the size of a maximum external face in G. More...
 
static T computeSize (const Graph &G, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength, StaticSPQRTree *spqrTree, NodeArray< EdgeArray< T > > &edgeLengthSkel)
 Returns the size of a maximum external face in G. More...
 
static void embed (Graph &G, adjEntry &adjExternal, const NodeArray< T > &nodeLength, const EdgeArray< T > &edgeLength, const node &n=nullptr)
 Embeds G by computing and extending a maximum face in G containg n. More...
 

Static Private Member Functions

static void adjEntryForNode (adjEntry &ae, ListIterator< adjEntry > &before, const StaticSPQRTree &spqrTree, NodeArray< bool > &treeNodeTreated, const node &mu, const node &leftNode, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength, const NodeArray< T > &thickness, NodeArray< List< adjEntry > > &newOrder, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArraySource, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArrayTarget, const T &delta_u, const T &delta_d, adjEntry &adjExternal)
 
static void bottomUpThickness (const StaticSPQRTree &spqrTree, const node &mu, NodeArray< T > &thickness, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength)
 
static void bottomUpTraversal (StaticSPQRTree &spqrTree, const node &mu, const NodeArray< T > &nodeLength, NodeArray< EdgeArray< T > > &edgeLength)
 Bottom up traversal of SPQR-tree computing the component length of all non-reference edges. More...
 
static void expandEdge (const StaticSPQRTree &spqrTree, NodeArray< bool > &treeNodeTreated, const node &mu, const node &leftNode, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength, const NodeArray< T > &thickness, NodeArray< List< adjEntry > > &newOrder, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArraySource, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArrayTarget, const T &delta_u, const T &delta_d, adjEntry &adjExternal, const node &n=nullptr)
 
static void expandEdgePNode (const StaticSPQRTree &spqrTree, NodeArray< bool > &treeNodeTreated, const node &mu, const node &leftNode, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength, const NodeArray< T > &thickness, NodeArray< List< adjEntry > > &newOrder, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArraySource, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArrayTarget, const T &delta_u, const T &delta_d, adjEntry &adjExternal)
 
static void expandEdgeRNode (const StaticSPQRTree &spqrTree, NodeArray< bool > &treeNodeTreated, const node &mu, const node &leftNode, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength, const NodeArray< T > &thickness, NodeArray< List< adjEntry > > &newOrder, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArraySource, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArrayTarget, const T &delta_u, const T &delta_d, adjEntry &adjExternal, const node &n=nullptr)
 
static void expandEdgeSNode (const StaticSPQRTree &spqrTree, NodeArray< bool > &treeNodeTreated, const node &mu, const node &leftNode, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength, const NodeArray< T > &thickness, NodeArray< List< adjEntry > > &newOrder, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArraySource, NodeArray< ListIterator< adjEntry > > &adjBeforeNodeArrayTarget, const T &delta_u, const T &delta_d, adjEntry &adjExternal)
 
static T largestFaceContainingNode (const StaticSPQRTree &spqrTree, const node &mu, const node &n, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength)
 Computes the size of a maximum face in the skeleton graph of mu containing n. More...
 
static T largestFaceInSkeleton (const StaticSPQRTree &spqrTree, const node &mu, const NodeArray< T > &nodeLength, const NodeArray< EdgeArray< T > > &edgeLength)
 Computes the size of a maximum face in the skeleton graph of mu. More...
 
static bool sssp (const Graph &G, const node &s, const EdgeArray< T > &length, NodeArray< T > &d)
 
static void topDownTraversal (StaticSPQRTree &spqrTree, const node &mu, const NodeArray< T > &nodeLength, NodeArray< EdgeArray< T > > &edgeLength)
 Top down traversal of SPQR-tree computing the component length of all reference edges. More...
 

Detailed Description

template<class T>
class ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >

Computes an embedding of a biconnected graph with maximum external face (plus layers approach).

See the paper "Graph Embedding with Minimum Depth and Maximum External Face" by C. Gutwenger and P. Mutzel (2004) for details. The algorithm for maximum external face is combined with the algorithm for maximum external layers which defines how to embed blocks into inner faces. See diploma thesis "Algorithmen zur Bestimmung von guten Graph-Einbettungen für orthogonale Zeichnungen" (in german) by Thorsten Kerkhof (2007) for details.

Definition at line 55 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

Constructor & Destructor Documentation

◆ EmbedderMaxFaceBiconnectedGraphsLayers()

Creates an embedder.

Definition at line 59 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

Member Function Documentation

◆ adjEntryForNode()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::adjEntryForNode ( adjEntry &  ae,
ListIterator< adjEntry > &  before,
const StaticSPQRTree &  spqrTree,
NodeArray< bool > &  treeNodeTreated,
const node &  mu,
const node &  leftNode,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength,
const NodeArray< T > &  thickness,
NodeArray< List< adjEntry > > &  newOrder,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArraySource,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArrayTarget,
const T &  delta_u,
const T &  delta_d,
adjEntry &  adjExternal 
)
staticprivate

(ae->theEdge() == referenceEdge)

(S.isVirtual(ae->theEdge()))

Definition at line 599 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ bottomUpThickness()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::bottomUpThickness ( const StaticSPQRTree &  spqrTree,
const node &  mu,
NodeArray< T > &  thickness,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength 
)
staticprivate

Definition at line 2271 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ bottomUpTraversal()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::bottomUpTraversal ( StaticSPQRTree &  spqrTree,
const node &  mu,
const NodeArray< T > &  nodeLength,
NodeArray< EdgeArray< T > > &  edgeLength 
)
staticprivate

Bottom up traversal of SPQR-tree computing the component length of all non-reference edges.

Parameters
spqrTreeis the SPQR-tree of G.
muis the SPQR-tree node treated in this function call.
nodeLengthis saving for each node of the original graph G its length.
edgeLengthis saving for each skeleton graph the length of each edge.

Definition at line 1905 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ compute()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::compute ( const Graph &  G,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength,
StaticSPQRTree *  spqrTree,
NodeArray< EdgeArray< T > > &  edgeLengthSkel 
)
static

Computes the component lengths of all virtual edges in spqrTree.

Parameters
Gis the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
spqrTreeis the SPQR-tree of G.
edgeLengthSkelis saving for each skeleton graph of the SPQR-tree all edge lengths.

Definition at line 1691 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ computeSize() [1/5]

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::computeSize ( const Graph &  G,
const node &  n,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength 
)
static

Returns the size of a maximum external face in G containing the node n.

Parameters
Gis the original graph.
nis a node of the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
Returns
The size of a maximum external face in G containing the node n.

Definition at line 1806 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ computeSize() [2/5]

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::computeSize ( const Graph &  G,
const node &  n,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength,
StaticSPQRTree *  spqrTree 
)
static

Returns the size of a maximum external face in G containing the node n.

Parameters
Gis the original graph.
nis a node of the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
spqrTreeis the SPQR-tree of G.
Returns
The size of a maximum external face in G containing the node n.

Definition at line 1835 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ computeSize() [3/5]

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::computeSize ( const Graph &  G,
const node &  n,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength,
StaticSPQRTree *  spqrTree,
const NodeArray< EdgeArray< T > > &  edgeLengthSkel 
)
static

Returns the size of a maximum external face in G containing the node n.

Parameters
Gis the original graph.
nis a node of the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
spqrTreeis the SPQR-tree of G.
edgeLengthSkelis saving for each skeleton graph the length of each edge.
Returns
The size of a maximum external face in G containing the node n.

Definition at line 1849 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ computeSize() [4/5]

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::computeSize ( const Graph &  G,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength 
)
static

Returns the size of a maximum external face in G.

Parameters
Gis the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
Returns
The size of a maximum external face in G.

Definition at line 1724 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ computeSize() [5/5]

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::computeSize ( const Graph &  G,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength,
StaticSPQRTree *  spqrTree,
NodeArray< EdgeArray< T > > &  edgeLengthSkel 
)
static

Returns the size of a maximum external face in G.

The SPQR-tree is given. The computed component lengths are computed and returned.

Parameters
Gis the original graph.
nodeLengthis saving for each vertex in G its length.
edgeLengthis saving for each edge in G its length.
spqrTreeis the SPQR-tree of G.
edgeLengthSkelis saving for each skeleton graph the length of each edge.
Returns
The size of a maximum external face in G.

Definition at line 1750 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ embed()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::embed ( Graph &  G,
adjEntry &  adjExternal,
const NodeArray< T > &  nodeLength,
const EdgeArray< T > &  edgeLength,
const node &  n = nullptr 
)
static

Embeds G by computing and extending a maximum face in G containg n.

Parameters
Gis the original graph.
adjExternalis assigned an adjacency entry of the external face.
nodeLengthstores for each vertex in G its length.
edgeLengthstores for each edge in G its length.
nis a node of the original graph. If n is given, a maximum face containing n is computed, otherwise any maximum face.

Definition at line 507 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ expandEdge()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::expandEdge ( const StaticSPQRTree &  spqrTree,
NodeArray< bool > &  treeNodeTreated,
const node &  mu,
const node &  leftNode,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength,
const NodeArray< T > &  thickness,
NodeArray< List< adjEntry > > &  newOrder,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArraySource,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArrayTarget,
const T &  delta_u,
const T &  delta_d,
adjEntry &  adjExternal,
const node &  n = nullptr 
)
staticprivate

Definition at line 693 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ expandEdgePNode()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::expandEdgePNode ( const StaticSPQRTree &  spqrTree,
NodeArray< bool > &  treeNodeTreated,
const node &  mu,
const node &  leftNode,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength,
const NodeArray< T > &  thickness,
NodeArray< List< adjEntry > > &  newOrder,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArraySource,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArrayTarget,
const T &  delta_u,
const T &  delta_d,
adjEntry &  adjExternal 
)
staticprivate

(S.isVirtual(e))

(delta_u + sum_E_a <= delta_d + sum_E_b)

Definition at line 864 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ expandEdgeRNode()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::expandEdgeRNode ( const StaticSPQRTree &  spqrTree,
NodeArray< bool > &  treeNodeTreated,
const node &  mu,
const node &  leftNode,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength,
const NodeArray< T > &  thickness,
NodeArray< List< adjEntry > > &  newOrder,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArraySource,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArrayTarget,
const T &  delta_u,
const T &  delta_d,
adjEntry &  adjExternal,
const node &  n = nullptr 
)
staticprivate

Definition at line 1155 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ expandEdgeSNode()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::expandEdgeSNode ( const StaticSPQRTree &  spqrTree,
NodeArray< bool > &  treeNodeTreated,
const node &  mu,
const node &  leftNode,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength,
const NodeArray< T > &  thickness,
NodeArray< List< adjEntry > > &  newOrder,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArraySource,
NodeArray< ListIterator< adjEntry > > &  adjBeforeNodeArrayTarget,
const T &  delta_u,
const T &  delta_d,
adjEntry &  adjExternal 
)
staticprivate

Definition at line 735 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ largestFaceContainingNode()

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::largestFaceContainingNode ( const StaticSPQRTree &  spqrTree,
const node &  mu,
const node &  n,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength 
)
staticprivate

Computes the size of a maximum face in the skeleton graph of mu containing n.

Parameters
spqrTreeis the SPQR-tree of G.
muis the SPQR-tree node treated in this function call.
nis a node of the original graph G.
nodeLengthis saving for each node of the original graph G its length.
edgeLengthis saving for each skeleton graph the length of each edge.

Definition at line 2080 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ largestFaceInSkeleton()

template<class T >
T ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::largestFaceInSkeleton ( const StaticSPQRTree &  spqrTree,
const node &  mu,
const NodeArray< T > &  nodeLength,
const NodeArray< EdgeArray< T > > &  edgeLength 
)
staticprivate

Computes the size of a maximum face in the skeleton graph of mu.

Parameters
spqrTreeis the SPQR-tree of G.
muis the SPQR-tree node treated in this function call.
nodeLengthis saving for each node of the original graph G its length.
edgeLengthis saving for each skeleton graph the length of each edge.

Definition at line 2176 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ sssp()

template<class T >
bool ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::sssp ( const Graph &  G,
const node &  s,
const EdgeArray< T > &  length,
NodeArray< T > &  d 
)
staticprivate

Definition at line 2514 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.

◆ topDownTraversal()

template<class T >
void ogdf::EmbedderMaxFaceBiconnectedGraphsLayers< T >::topDownTraversal ( StaticSPQRTree &  spqrTree,
const node &  mu,
const NodeArray< T > &  nodeLength,
NodeArray< EdgeArray< T > > &  edgeLength 
)
staticprivate

Top down traversal of SPQR-tree computing the component length of all reference edges.

Parameters
spqrTreeis the SPQR-tree of G.
muis the SPQR-tree node treated in this function call.
nodeLengthis saving for each node of the original graph G its length.
edgeLengthis saving for each skeleton graph the length of each edge.

Definition at line 1994 of file EmbedderMaxFaceBiconnectedGraphsLayers.h.


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