Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

DualGraph.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 #include <ogdf/basic/NodeArray.h>
36 #include <ogdf/basic/EdgeArray.h>
37 #include <ogdf/basic/FaceArray.h>
38 
39 namespace ogdf {
40 
49 {
50 public:
52  explicit DualGraph(const ConstCombinatorialEmbedding &CE);
54  ~DualGraph();
56  const ConstCombinatorialEmbedding &getPrimalEmbedding() const { return m_primalEmbedding; }
58  const Graph &getPrimalGraph() const { return m_primalEmbedding.getGraph(); }
59 
61 
65  const node &primalNode(face f) const { return m_primalNode[f]; }
66 
68 
72  const edge &primalEdge(edge e) const { return m_primalEdge[e]; }
73 
75 
79  const face &primalFace(node v) const { return m_primalFace[v]; }
80 
82 
86  const node &dualNode(face f) const { return m_dualNode[f]; }
87 
89 
93  const edge &dualEdge(edge e) const { return m_dualEdge[e]; }
94 
96 
100  const face &dualFace(node v) const { return m_dualFace[v]; }
101 
102 protected:
110 };
111 
112 }
const face & dualFace(node v) const
Returns the face in the embedding of the dual graph corresponding to v.
Definition: DualGraph.h:100
FaceArray< node > m_dualNode
The corresponding node in the dual graph.
Definition: DualGraph.h:107
const ConstCombinatorialEmbedding & getPrimalEmbedding() const
Returns a reference to the combinatorial embedding of the primal graph.
Definition: DualGraph.h:56
EdgeArray< edge > m_dualEdge
The corresponding edge in the dual graph.
Definition: DualGraph.h:109
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Combinatorial embeddings of planar graphs.
const ConstCombinatorialEmbedding & m_primalEmbedding
The embedding of the primal graph.
Definition: DualGraph.h:103
declaration and implementation of FaceArray class
Declaration of CombinatorialEmbedding and face.
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
FaceArray< node > m_primalNode
The corresponding node in the primal graph.
Definition: DualGraph.h:104
Dynamic arrays indexed with faces of a combinatorial embedding.
Dynamic arrays indexed with nodes.
Definition: Graph_d.h:438
Declaration and implementation of EdgeArray class.
const Graph & getPrimalGraph() const
Returns a reference to the primal graph.
Definition: DualGraph.h:58
NodeArray< face > m_primalFace
The corresponding facee in the embedding of the primal graph.
Definition: DualGraph.h:105
Faces in a combinatorial embedding.
Class for the representation of edges.
Definition: Graph_d.h:292
Class for the representation of nodes.
Definition: Graph_d.h:169
Declaration and implementation of NodeArray class.
const edge & primalEdge(edge e) const
Returns the edge in the primal graph corresponding to e.
Definition: DualGraph.h:72
const node & primalNode(face f) const
Returns the node in the primal graph corresponding to f.
Definition: DualGraph.h:65
const node & dualNode(face f) const
Returns the node in the dual graph corresponding to f.
Definition: DualGraph.h:86
A dual graph including its combinatorial embedding of an embedded graph.
Definition: DualGraph.h:48
const face & primalFace(node v) const
Returns the face in the embedding of the primal graph corresponding to v.
Definition: DualGraph.h:79
const edge & dualEdge(edge e) const
Returns the edge in the dual graph corresponding to e.
Definition: DualGraph.h:93
NodeArray< face > m_dualFace
The corresponding face in embedding of the dual graph.
Definition: DualGraph.h:108
The namespace for all OGDF objects.
EdgeArray< edge > m_primalEdge
The corresponding edge in the primal graph.
Definition: DualGraph.h:106
Combinatorial embeddings of planar graphs with modification functionality.