Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PertinentGraph.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 
37 namespace ogdf {
38 
40 
59  friend class OGDF_EXPORT SPQRTree;
60 
61 public:
62  // constructor
63  // Remark: Pertinent graphs are created by the pertinentGraph()
64  // function of SPQRTree.
65 
67 
71  PertinentGraph() : m_vT(nullptr) { }
72 
74  void init(node vT) {
75  m_P.clear();
76  m_vT = vT;
77  m_vEdge = m_skRefEdge = nullptr;
78  m_origV.init(m_P, nullptr);
79  m_origE.init(m_P, nullptr);
80  }
81 
83  node treeNode() const { return m_vT; }
84 
86  const Graph& getGraph() const { return m_P; }
87 
89  Graph& getGraph() { return m_P; }
90 
92 
95  edge referenceEdge() const { return m_vEdge; }
96 
98 
102  edge skeletonReferenceEdge() const { return m_skRefEdge; }
103 
105 
108  node original(node v) const { return m_origV[v]; }
109 
111 
115  edge original(edge e) const { return m_origE[e]; }
116 
117 protected:
122 
125 };
126 
127 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::PertinentGraph::skeletonReferenceEdge
edge skeletonReferenceEdge() const
Returns the reference edge in skeleton of vT.
Definition: PertinentGraph.h:102
Graph.h
Includes declaration of graph class.
ogdf::PertinentGraph::PertinentGraph
PertinentGraph()
Creates an empty instance of type PertinentGraph.
Definition: PertinentGraph.h:71
ogdf::PertinentGraph::m_P
Graph m_P
actual graph
Definition: PertinentGraph.h:119
ogdf::SPQRTree
Linear-time implementation of static SPQR-trees.
Definition: SPQRTree.h:73
ogdf::PertinentGraph::getGraph
const Graph & getGraph() const
Returns a reference to G(vT).
Definition: PertinentGraph.h:86
ogdf::PertinentGraph::m_skRefEdge
edge m_skRefEdge
reference edge (in skeleton(m_vT))
Definition: PertinentGraph.h:121
ogdf::PertinentGraph::m_vEdge
edge m_vEdge
reference edge (in m_P)
Definition: PertinentGraph.h:120
ogdf::PertinentGraph::m_origV
NodeArray< node > m_origV
corresp.
Definition: PertinentGraph.h:123
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::PertinentGraph::getGraph
Graph & getGraph()
Returns a reference to G(vT).
Definition: PertinentGraph.h:89
ogdf::PertinentGraph::treeNode
node treeNode() const
Returns the tree node vT in T whose pertinent graph is this one.
Definition: PertinentGraph.h:83
ogdf::PertinentGraph::m_vT
node m_vT
corresponding tree node
Definition: PertinentGraph.h:118
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::PertinentGraph::original
node original(node v) const
Returns the vertex in G that corresponds to v.
Definition: PertinentGraph.h:108
ogdf::PertinentGraph::init
void init(node vT)
Initialization of a pertinent graph of tree node vT.
Definition: PertinentGraph.h:74
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363
ogdf::PertinentGraph::referenceEdge
edge referenceEdge() const
Returns the edge in G(vT) corresponding to the reference edge in skeleton of vT.
Definition: PertinentGraph.h:95
ogdf::PertinentGraph
Pertinent graphs of nodes in an SPQR-tree.
Definition: PertinentGraph.h:58
ogdf::PertinentGraph::original
edge original(edge e) const
Returns the edge in G that corresponds to e.
Definition: PertinentGraph.h:115
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240
ogdf::PertinentGraph::m_origE
EdgeArray< edge > m_origE
corresp.
Definition: PertinentGraph.h:124
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716