Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

DynamicBCTree.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf {
37 
55  friend class PlanarAugmentation;
56  friend class PlanarAugmentationFix;
57 
58 protected:
71 
85 
89  void init ();
91 
103  node unite (node uB, node vB, node wB);
104 
111  node find (node vB) const;
113 
121  node parent (node vB) const override;
122 
133  node condensePath (node sG, node tG);
135 
136 public:
146  explicit DynamicBCTree (Graph& G, bool callInitConnected = false) : BCTree(G, callInitConnected) { init(); }
147 
156  DynamicBCTree (Graph& G, node vG, bool callInitConnected = false) : BCTree(G,vG, callInitConnected) { init(); }
158 
174  node bcproper (node vG) const override;
175 
186  node bcproper (edge eG) const override;
188 
205  node repVertex (node uG, node vB) const override { return BCTree::repVertex(uG,find(vB)); }
206 
239  node cutVertex (node uB, node vB) const override { return BCTree::cutVertex(find(uB),find(vB)); }
241 
258  virtual edge updateInsertedEdge (edge eG);
259 
277  virtual node updateInsertedNode (edge eG, edge fG);
278 
288  edge insertEdge (node sG, node tG) { return updateInsertedEdge(m_G.newEdge(sG,tG)); }
289 
298  node insertNode (edge eG) { return updateInsertedNode(eG,m_G.split(eG)); }
300 
315  node bComponent (node uG, node vG) const;
316 
318 };
319 
320 }
virtual node repVertex(node uG, node vB) const
Returns a vertex of the biconnected components graph corresponding to a given vertex of the original ...
node cutVertex(node uB, node vB) const override
Returns the copy of a cut-vertex in the biconnected components graph which belongs to a certain B-com...
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
NodeArray< node > m_bNode_owner
Array that contains for each BC-tree-vertex its parent in its UNION/FIND-tree structure.
Definition: DynamicBCTree.h:70
Dynamic BC-trees.
Definition: DynamicBCTree.h:54
The algorithm for biconnectivity augmentation with fixed combinatorial embedding. ...
Declaration of class BCTree.
DynamicBCTree(Graph &G, bool callInitConnected=false)
edge insertEdge(node sG, node tG)
Inserts a new edge into the original graph and updates the BC-tree.
The algorithm for planar biconnectivity augmentation (Mutzel, Fialko).
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:423
NodeArray< int > m_bNode_degree
Array that contains for each proper BC-tree-vertex its degree.
Definition: DynamicBCTree.h:84
Static BC-trees.
Definition: BCTree.h:56
Class for the representation of edges.
Definition: Graph_d.h:291
DynamicBCTree(Graph &G, node vG, bool callInitConnected=false)
A constructor.
Class for the representation of nodes.
Definition: Graph_d.h:167
virtual node cutVertex(node uB, node vB) const
Returns the copy of a cut-vertex in the biconnected components graph which belongs to a certain B-com...
static bool find(V &ts, const T &t)
Definition: Alg.h:47
node insertNode(edge eG)
Inserts a new vertex into the original graph and updates the BC-tree.
The namespace for all OGDF objects.
node repVertex(node uG, node vB) const override