Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

StaticSkeleton.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
36 #include <ogdf/basic/memory.h>
38 
39 namespace ogdf {
40 
41 class OGDF_EXPORT StaticSPQRTree;
42 class SPQRTree;
43 
45 
64 
65 public:
66  // constructor
67 
69 
75  StaticSkeleton(const StaticSPQRTree* T, node vT);
76 
77  // destructor
79 
81  const SPQRTree& owner() const override;
82 
84 
87  node original(node v) const override { return m_orig[v]; }
88 
90 
93  bool isVirtual(edge e) const override { return m_real[e] == nullptr; }
94 
96 
100  edge realEdge(edge e) const override { return m_real[e]; }
101 
103 
107  edge twinEdge(edge e) const override;
108 
110 
114  node twinTreeNode(edge e) const override;
115 
117 
121  edge treeEdge(edge e) const { return m_treeEdge[e]; }
122 
124 
125 protected:
130 };
131 
132 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::StaticSPQRTree
Linear-time implementation of static SPQR-trees.
Definition: StaticSPQRTree.h:79
ogdf::StaticSkeleton
Skeleton graphs of nodes in a static SPQR-tree.
Definition: StaticSkeleton.h:62
ogdf::SPQRTree
Linear-time implementation of static SPQR-trees.
Definition: SPQRTree.h:73
ogdf::StaticSkeleton::m_orig
NodeArray< node > m_orig
corresp.
Definition: StaticSkeleton.h:127
Skeleton.h
Declaration of class Skeleton.
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::StaticSkeleton::treeEdge
edge treeEdge(edge e) const
Returns the tree edge which is associated with skeleton edge e.
Definition: StaticSkeleton.h:121
ogdf::StaticSkeleton::m_treeEdge
EdgeArray< edge > m_treeEdge
corresp.
Definition: StaticSkeleton.h:129
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::StaticSkeleton::realEdge
edge realEdge(edge e) const override
Returns the real edge that corresponds to skeleton edge e.
Definition: StaticSkeleton.h:100
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363
ogdf::Skeleton
Skeleton graphs of nodes in an SPQR-tree.
Definition: Skeleton.h:60
ogdf::StaticSkeleton::~StaticSkeleton
~StaticSkeleton()
Definition: StaticSkeleton.h:78
ogdf::StaticSkeleton::m_real
EdgeArray< edge > m_real
corresp.
Definition: StaticSkeleton.h:128
ogdf::StaticSkeleton::m_owner
const StaticSPQRTree * m_owner
owner tree
Definition: StaticSkeleton.h:126
ogdf::StaticSkeleton::isVirtual
bool isVirtual(edge e) const override
Returns true iff e is a virtual edge.
Definition: StaticSkeleton.h:93
ogdf::StaticSkeleton::original
node original(node v) const override
Returns the vertex in the original graph G that corresponds to v.
Definition: StaticSkeleton.h:87
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716