Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

CrossingStructure.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/SList.h>
36 
37 namespace ogdf {
38 class GraphCopy;
39 class PlanRep;
40 
41 namespace embedder {
42 
44 public:
46 
47  void init(GraphCopy& PG, int weightedCrossingNumber);
48 
56  void restore(PlanRep& PG, int cc);
57 
58  int numberOfCrossings() const { return m_numCrossings; }
59 
61 
62  const SListPure<int>& crossings(edge e) const { return m_crossings[e]; }
63 
64 private:
68 };
69 
70 }
71 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::PlanRep
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:69
ogdf::embedder::CrossingStructure
Definition: CrossingStructure.h:43
ogdf::embedder::CrossingStructure::m_crossings
EdgeArray< SListPure< int > > m_crossings
Definition: CrossingStructure.h:67
ogdf::embedder::CrossingStructure::numberOfCrossings
int numberOfCrossings() const
Definition: CrossingStructure.h:58
ogdf::GraphCopy
Copies of graphs supporting edge splitting.
Definition: GraphCopy.h:391
ogdf::embedder::CrossingStructure::CrossingStructure
CrossingStructure()
Definition: CrossingStructure.h:45
SList.h
Declaration of singly linked lists and iterators.
ogdf::SListPure< int >
ogdf::embedder::CrossingStructure::crossings
const SListPure< int > & crossings(edge e) const
Definition: CrossingStructure.h:62
ogdf::embedder::CrossingStructure::m_weightedCrossingNumber
int m_weightedCrossingNumber
Definition: CrossingStructure.h:66
ogdf::embedder::CrossingStructure::weightedCrossingNumber
int weightedCrossingNumber() const
Definition: CrossingStructure.h:60
ogdf::embedder::CrossingStructure::restore
void restore(PlanRep &PG, int cc)
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363
ogdf::embedder::CrossingStructure::init
void init(GraphCopy &PG, int weightedCrossingNumber)
ogdf::embedder::CrossingStructure::m_numCrossings
int m_numCrossings
Definition: CrossingStructure.h:65
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716