Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

BoyerMyrvoldInit.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <random>
36 #include <limits>
38 #include <ogdf/basic/List.h>
39 
40 namespace ogdf {
41 namespace boyer_myrvold {
42 
44 
49 public:
51  explicit BoyerMyrvoldInit(BoyerMyrvoldPlanar* pBM);
52 
55 
57  void computeDFS();
58 
60  void computeLowPoints();
61 
63  void computeDFSChildLists();
64 
65  // avoid automatic creation of assignment operator
68 
69 private:
72 
74  const int& m_embeddingGrade;
75  const double& m_randomness;
77  std::minstd_rand m_rand;
78 
80 
83 
86 
89 
91 
93  NodeArray<adjEntry> (&m_link)[2];
94 
97 
99 
102 
105 
108 
111 
113 
116 
118 
121 
123  void createVirtualVertex(const adjEntry father);
124 };
125 
126 }
127 }
const EdgeArray< int > * m_edgeCosts
void computeLowPoints()
Computes lowpoint, highestSubtreeDFI and links virtual to nonvirtual vertices.
void computeDFSChildLists()
Computes the list of separated DFS children for all nodes.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
NodeArray< ListPure< node > > & m_separatedDFSChildList
A list to all separated DFS-children of node.
NodeArray< node > & m_realVertex
Link to non-virtual vertex of a virtual Vertex.
NodeArray< int > & m_leastAncestor
The DFI of the least ancestor node over all backedges.
void createVirtualVertex(const adjEntry father)
Creates and links a virtual vertex of the node belonging to father.
NodeArray< adjEntry > & m_adjParent
The adjEntry which goes from DFS-parent to current vertex.
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:423
This class is used in the Boyer-Myrvold planarity test for preprocessing purposes.
void computeDFS()
Creates the DFSTree.
BoyerMyrvoldInit(BoyerMyrvoldPlanar *pBM)
Constructor, the parameter BoyerMyrvoldPlanar is needed.
Array< node > & m_nodeFromDFI
Returns appropriate node from given DFI.
NodeArray< int > & m_lowPoint
The lowpoint of each node.
const int & m_embeddingGrade
Some parameters... see BoyerMyrvold.h for further instructions.
NodeArray< int > & m_dfi
The one and only DFI-Array.
EdgeArray< BoyerMyrvoldEdgeType > & m_edgeType
Contains the type of each edge.
This class implements the extended BoyerMyrvold planarity embedding algorithm.
Declaration of the class BoyerMyrvoldPlanar.
BoyerMyrvoldInit & operator=(const BoyerMyrvoldInit &)
Assignment operator is undefined!
The namespace for all OGDF objects.
NodeArray< int > & m_highestSubtreeDFI
The highest DFI in a subtree with node as root.
NodeArray< ListIterator< node > > & m_pNodeInParent
Pointer to node contained in the DFSChildList of his parent, if exists.
Class for adjacency list elements.
Definition: Graph_d.h:78
Declaration of doubly linked lists and iterators.