Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

StaticSkeleton.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 
37 namespace ogdf {
38 
39 class OGDF_EXPORT StaticSPQRTree;
40 
41 
43 
61 {
63 
64 public:
65 
66  // constructor
67 
69 
75  StaticSkeleton(const StaticSPQRTree *T, node vT);
76 
77 
78  // destructor
80 
81 
83  const SPQRTree &owner() const override;
84 
86 
89  node original (node v) const override {
90  return m_orig[v];
91  }
92 
94 
97  bool isVirtual (edge e) const override {
98  return m_real[e] == nullptr;
99  }
100 
102 
106  edge realEdge (edge e) const override {
107  return m_real[e];
108  }
109 
111 
115  edge twinEdge (edge e) const override;
116 
118 
122  node twinTreeNode (edge e) const override;
123 
125 
129  edge treeEdge (edge e) const {
130  return m_treeEdge[e];
131  }
132 
134 
135 protected:
140 };
141 
142 }
Skeleton graphs of nodes in a static SPQR-tree.
bool isVirtual(edge e) const override
Returns true iff e is a virtual edge.
EdgeArray< edge > m_real
corresp.
edge realEdge(edge e) const override
Returns the real edge that corresponds to skeleton edge e.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
node original(node v) const override
Returns the vertex in the original graph G that corresponds to v.
EdgeArray< edge > m_treeEdge
corresp.
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
Declaration of class Skeleton.
Skeleton graphs of nodes in an SPQR-tree.
Definition: Skeleton.h:61
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:438
NodeArray< node > m_orig
corresp.
Class for the representation of edges.
Definition: Graph_d.h:292
Class for the representation of nodes.
Definition: Graph_d.h:169
const StaticSPQRTree * m_owner
owner tree
Linear-time implementation of static SPQR-trees.
edge treeEdge(edge e) const
Returns the tree edge which is associated with skeleton edge e.
Linear-time implementation of static SPQR-trees.
Definition: SPQRTree.h:71
The namespace for all OGDF objects.