Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

Skeleton.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/NodeArray.h>
35 #include <ogdf/basic/EdgeArray.h>
36 
37 
38 namespace ogdf {
39 
40 class OGDF_EXPORT SPQRTree;
41 
42 
44 
62 {
63 public:
64 
65  // constructor
66 
68 
74  explicit Skeleton(node vT) : m_treeNode(vT) { }
75 
76 
77  // destructor
78  virtual ~Skeleton() { }
79 
80 
82  virtual const SPQRTree &owner() const=0;
83 
85  node treeNode() const {
86  return m_treeNode;
87  }
88 
90 
94  edge referenceEdge() const {
95  return m_referenceEdge;
96  }
97 
99  const Graph &getGraph() const {
100  return m_M;
101  }
102 
105  return m_M;
106  }
107 
109 
112  virtual node original (node v) const=0;
113 
115 
118  virtual bool isVirtual (edge e) const=0;
119 
121 
125  virtual edge realEdge (edge e) const=0;
126 
128 
132  virtual edge twinEdge (edge e) const=0;
133 
135 
139  virtual node twinTreeNode (edge e) const=0;
140 
142 
143 protected:
147 };
148 
149 
150 } // end namespace ogdf
Graph & getGraph()
Returns a reference to the skeleton graph M.
Definition: Skeleton.h:104
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
Graph m_M
actual skeleton graph
Definition: Skeleton.h:146
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
const Graph & getGraph() const
Returns a reference to the skeleton graph M.
Definition: Skeleton.h:99
edge m_referenceEdge
reference edge
Definition: Skeleton.h:145
edge referenceEdge() const
Returns the reference edge of S in M.
Definition: Skeleton.h:94
Skeleton graphs of nodes in an SPQR-tree.
Definition: Skeleton.h:61
Declaration and implementation of EdgeArray class.
node m_treeNode
corresp.
Definition: Skeleton.h:144
Class for the representation of edges.
Definition: Graph_d.h:291
Class for the representation of nodes.
Definition: Graph_d.h:167
Declaration and implementation of NodeArray class.
#define OGDF_NEW_DELETE
Makes the class use OGDF&#39;s memory allocator.
Definition: memory.h:84
node treeNode() const
Returns the corresponding node in the owner tree T to which S belongs.
Definition: Skeleton.h:85
Linear-time implementation of static SPQR-trees.
Definition: SPQRTree.h:71
Skeleton(node vT)
Creates a skeleton S with owner tree T and corresponding node vT.
Definition: Skeleton.h:74
The namespace for all OGDF objects.
virtual ~Skeleton()
Definition: Skeleton.h:78