Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

PlanarAugmentationFix.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <ogdf/basic/GraphCopy.h>
38 
39 namespace ogdf {
40 
47 
48 public:
51 
54 
55 protected:
62  virtual void doCall(Graph& g, List<edge>& list) override;
63 
64 private:
66  CombinatorialEmbedding* m_pEmbedding = nullptr;
67 
69  CombinatorialEmbedding* m_pActEmbedding = nullptr;
70 
72  Graph* m_pGraph = nullptr;
73 
75  List<edge>* m_pResult = nullptr;
76 
78  DynamicBCTree* m_pBCTree = nullptr;
79 
82 
85 
88 
91 
94 
97 
100 
102  void augment(adjEntry adjOuterFace);
103 
105  void modifyBCRoot(node oldRoot, node newRoot);
106 
108  void changeBCRoot(node oldRoot, node newRoot);
109 
111  void reduceChain(node pendant);
112 
114  PALabel::StopCause followPath(node v, node& last);
115 
117  bool findMatching(node& pendant1, node& pendant2, adjEntry& v1, adjEntry& v2);
118 
120  void findMatchingRev(node& pendant1, node& pendant2, adjEntry& v1, adjEntry& v2);
121 
123  pa_label newLabel(node cutvertex, node parent, node pendant, PALabel::StopCause whyStop);
124 
126  void addPendant(node pendant, pa_label& label);
127 
129  ListIterator<pa_label> insertLabel(pa_label label);
130 
132  void connectPendants(node pendant1, node pendant2, adjEntry adjV1, adjEntry adjV2);
133 
135  void connectSingleLabel();
136 
138  void deletePendant(node pendant);
139 
141  void deleteLabel(pa_label& label);
142 
144  void removeLabel(pa_label& label);
145 };
146 
147 }
NodeArray< ListIterator< node > > m_belongsToIt
Array that contains the iterator of the label a node belongs to.
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
EdgeArray< edge > m_eCopy
Edge-array required for construction of the graph copy.
#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
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
The algorithm for biconnectivity augmentation with fixed combinatorial embedding. ...
NodeArray< ListIterator< pa_label > > m_isLabel
Array that contains iterators to the list of labels if a node is a parent of a label.
List< pa_label > m_labels
The list of all labels.
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:438
NodeArray< pa_label > m_belongsTo
Array that contains the label a node belongs to.
Declaration of graph copy classes.
node m_actBCRoot
The actual root of the bc-tree.
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:249
Class for the representation of nodes.
Definition: Graph_d.h:169
Encapsulates a pointer to a list element.
Definition: List.h:42
GraphCopy m_graphCopy
The actual partial graph.
Declaration of interface for graph augmentation algorithms.
Declaration of class DynamicBCTree.
The base class for graph augmentation algorithms.
The namespace for all OGDF objects.
PlanarAugmentationFix()
Creates an instance of planar augmentation with fixed embedding.
Combinatorial embeddings of planar graphs with modification functionality.
Class for adjacency list elements.
Definition: Graph_d.h:79