Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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>& L) override;
76 
77 
78 private:
83 
92 
97 
106 
111 
120 
129 
130 
131 private:
132 
136  void augment();
137 
142  void makeConnectedByPendants();
143 
151  void reduceChain(node p, pa_label labelOld = nullptr);
152 
162  PALabel::StopCause followPath(node v, node& last);
163 
171  bool planarityCheck(node v1, node v2);
172 
180  node adjToCutvertex(node v, node cutvertex = nullptr);
181 
186  node findLastBefore(node pendant, node ancestor);
187 
192  void deletePendant(node p, bool removeFromLabel = true);
196  void addPendant(node p, pa_label& l);
197 
203  edge connectPendants(node pendant1, node pendant2);
207  void removeAllPendants(pa_label& l);
208 
212  void joinPendants(pa_label& l);
213 
217  void connectInsideLabel(pa_label& l);
218 
224  ListIterator<pa_label> insertLabel(pa_label l);
225 
229  void deleteLabel(pa_label& l, bool removePendants = true);
230 
235  void connectLabels(pa_label first, pa_label second);
236 
240  pa_label newLabel(node cutvertex, node p, PALabel::StopCause whyStop);
241 
251  bool findMatching(pa_label& first, pa_label& second);
252 
257  bool connectCondition(pa_label a, pa_label b);
258 
265  void updateAdjNonChildren(node newBlock, SList<node>& path);
266 
270  void modifyBCRoot(node oldRoot, node newRoot);
271 
277  void updateNewEdges(const SList<edge> &newEdges);
278 
282  void terminate();
283 
284 }; // class PlanarAugmentation
285 
286 
287 } // namespace ogdf
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:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
DynamicBCTree * m_pBCTree
The corresponding BC-Tree.
Dynamic BC-trees.
Definition: DynamicBCTree.h:54
List< edge > * m_pResult
The inserted edges by the algorithm.
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...
Singly linked lists (maintaining the length of the list).
Definition: SList.h:777
List< node > m_pendantsToDel
The list of pendants that has to be deleted after each reduceChain.
Graph * m_pGraph
The working graph.
The algorithm for planar biconnectivity augmentation (Mutzel, Fialko).
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:423
Class for the representation of edges.
Definition: Graph_d.h:291
Class for the representation of nodes.
Definition: Graph_d.h:167
Encapsulates a pointer to a list element.
Definition: List.h:41
Declaration of interface for graph augmentation algorithms.
Declaration of class DynamicBCTree.
int m_nPlanarityTests
Counts the number of planarity tests.
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.
NodeArray< ListIterator< pa_label > > m_isLabel
The list iterator in m_labels if the node in the BC-Tree is a label.
List< node > m_pendants
The list of all pendants (leaves in the BC-Tree).
~PlanarAugmentation()
Destruction.