Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

PlanarAugmentation.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <ogdf/basic/SList.h>
38 
39 namespace ogdf {
40 
60 
61 public:
64 
67 
68 protected:
75  virtual void doCall(Graph& G, List<edge>& list) override;
76 
77 
78 private:
80  int m_nPlanarityTests = 0;
81 
83  Graph* m_pGraph = nullptr;
84 
86  DynamicBCTree* m_pBCTree = nullptr;
87 
89  List<edge>* m_pResult = nullptr;
90 
93 
96 
99 
102 
105 
114 
115 private:
117  void augment();
118 
120  void makeConnectedByPendants();
121 
129  void reduceChain(node pendant, pa_label labelOld = nullptr);
130 
140  PALabel::StopCause followPath(node v, node& last);
141 
149  bool planarityCheck(node v1, node v2);
150 
158  node adjToCutvertex(node v, node cutvertex = nullptr);
159 
161  node findLastBefore(node pendant, node ancestor);
162 
165  void deletePendant(node pendant, bool removeFromLabel = true);
166 
168  void addPendant(node pendant, pa_label& label);
169 
175  edge connectPendants(node pendant1, node pendant2);
176 
178  void removeAllPendants(pa_label& label);
179 
181  void joinPendants(pa_label& label);
182 
184  void connectInsideLabel(pa_label& label);
185 
191  ListIterator<pa_label> insertLabel(pa_label label);
192 
194  void deleteLabel(pa_label& label, bool removePendants = true);
195 
201  void connectLabels(pa_label first, pa_label second);
202 
204  pa_label newLabel(node cutvertex, node pendant, PALabel::StopCause whyStop);
205 
215  bool findMatching(pa_label& first, pa_label& second);
216 
218  bool connectCondition(pa_label a, pa_label b);
219 
226  void updateAdjNonChildren(node newBlock, SList<node>& path);
227 
229  void modifyBCRoot(node oldRoot, node newRoot);
230 
236  void updateNewEdges(const SList<edge> &newEdges);
237 
239  void terminate();
240 };
241 
242 }
Declaration of singly linked lists and iterators.
auxiliary class for the planar augmentation algorithm
Definition: PALabel.h:46
Declares auxiliary structure of planar augmentation algorithms.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Dynamic BC-trees.
Definition: DynamicBCTree.h:54
Singly linked lists (maintaining the length of the list).
Definition: SList.h:773
List< node > m_pendantsToDel
The list of pendants that has to be deleted after each reduceChain.
NodeArray< ListIterator< pa_label > > m_isLabel
The list iterator in m_labels if the node in the BC-Tree is a label.
The algorithm for planar biconnectivity augmentation (Mutzel, Fialko).
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:438
Class for the representation of edges.
Definition: Graph_d.h:292
Class for the representation of nodes.
Definition: Graph_d.h:169
Encapsulates a pointer to a list element.
Definition: List.h:42
Declaration of interface for graph augmentation algorithms.
Declaration of class DynamicBCTree.
NodeArray< SList< adjEntry > > m_adjNonChildren
Stores for each node of the bc-tree the children that have an adjacent bc-node that doesn&#39;t belong to...
PlanarAugmentation()
Creates an instance of the planar augmentation algorithm.
The base class for graph augmentation algorithms.
The namespace for all OGDF objects.
List< pa_label > m_labels
The list of all labels, sorted by size (decreasing).
NodeArray< pa_label > m_belongsTo
The label a BC-Node belongs to.
List< node > m_pendants
The list of all pendants (leaves in the BC-Tree).
~PlanarAugmentation()
Destruction.