Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

EmbedderMinDepthMaxFaceLayers.h
Go to the documentation of this file.
1 
33 #pragma once
34 
38 
39 namespace ogdf {
40 
42 
54 {
55 public:
56  //constructor:
57  EmbedderMinDepthMaxFaceLayers() : pBCTree(nullptr), pAdjExternal(nullptr) {}
58 
64  virtual void doCall(Graph& G, adjEntry& adjExternal) override;
65 
66 private:
68 
79  int md_bottomUpTraversal(const node& bT, const node& cH);
80 
92  void md_topDownTraversal(const node& bT);
93 
101  int mf_constraintMaxFace(const node& bT, const node& cH);
102 
111  void mf_maximumFaceRec(const node& bT, node& bT_opt, int& ell_opt);
112 
119  void embedBlock(const node& bT);
120 
131  void embedBlock(const node& bT, const node& cT, ListIterator<adjEntry>& after);
132 
133 private:
136 
139 
142 
145 
148 
152 
157 
160 
163 
166 
169 
172 
175 
179 };
180 
181 } // end namespace ogdf
Definition of MDMFLengthAttribute.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Auxiliary length attribute.
NodeArray< int > mf_cstrLength
is saving for each node of the block graph its cstrLength
Planar graph embedding with minimum block-nesting depth and maximum external face (plus layers approa...
Declaration of interface for embedder for graphs.
NodeArray< int > mf_nodeLength
is saving for each node of the block graph its length
Declaration of class BCTree.
NodeArray< int > md_minDepth
an array containing the minimum depth of each block
NodeArray< List< node > > md_M2
M2 is empty, if |M_B| != 1, otherwise M_B = {cH} M2 = {cH&#39; in V_B \ {v} | m_B(cH&#39;) = m2} with m2 = ma...
Static BC-trees.
Definition: BCTree.h:56
NodeArray< int > md_nodeLength
saving for each node in the block graph its length
NodeArray< bool > treeNodeTreated
treeNodeTreated saves for all block nodes in the BC-tree if it has already been treated or not...
NodeArray< int > mf_maxFaceSize
an array containing the maximum face size of each block
NodeArray< MDMFLengthAttribute > mdmf_nodeLength
is saving for each node of the block graph its length
Class for the representation of nodes.
Definition: Graph_d.h:167
Encapsulates a pointer to a list element.
Definition: List.h:41
NodeArray< List< adjEntry > > newOrder
saves for every node of G the new adjacency list
adjEntry * pAdjExternal
an adjacency entry on the external face
EdgeArray< int > md_m_cB
an array saving the length for each edge in the BC-tree
The namespace for all OGDF objects.
EdgeArray< MDMFLengthAttribute > mdmf_edgeLength
is saving for each edge of the block graph its length
Base class for embedder algorithms.
NodeArray< List< node > > md_M_B
M_B = {cH in B | m_B(cH) = m_B} with m_B = max{m_B(c) : c in B} and m_B(c) = max( {0} cup {m_{c...
Class for adjacency list elements.
Definition: Graph_d.h:78