Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

CrossingsMatrix.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Array.h>
36 #include <ogdf/basic/Array2D.h>
37 #include <ogdf/basic/Graph.h>
38 #include <ogdf/basic/basic.h>
39 
40 #include <cstdint>
41 
42 namespace ogdf {
43 class HierarchyLevels;
44 class Level;
45 
49 public:
50  CrossingsMatrix() : matrix(0, 0, 0, 0) { m_bigM = 10000; }
51 
52  explicit CrossingsMatrix(const HierarchyLevels& levels);
53 
55 
56  int operator()(int i, int j) const { return matrix(map[i], map[j]); }
57 
58  void swap(int i, int j) { map.swap(i, j); }
59 
61  void init(Level& L);
62 
64  void init(Level& L, const EdgeArray<uint32_t>* edgeSubGraphs);
65 
66 private:
70  int m_bigM; // is set to some big number in both constructors
71 };
72 
73 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::CrossingsMatrix::m_bigM
int m_bigM
need this for SimDraw to grant epsilon-crossings instead of zero-crossings
Definition: CrossingsMatrix.h:70
ogdf::CrossingsMatrix
Implements crossings matrix which is used by some TwoLayerCrossingMinimization heuristics (e....
Definition: CrossingsMatrix.h:48
ogdf::CrossingsMatrix::CrossingsMatrix
CrossingsMatrix()
Definition: CrossingsMatrix.h:50
ogdf::CrossingsMatrix::swap
void swap(int i, int j)
Definition: CrossingsMatrix.h:58
ogdf::CrossingsMatrix::matrix
Array2D< int > matrix
Definition: CrossingsMatrix.h:68
ogdf::Array2D< int >
ogdf::Array< int >
ogdf::graphics::init
void init()
Definition: graphics.h:450
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
Array.h
Declaration and implementation of Array class and Array algorithms.
ogdf::Level
Representation of levels in hierarchies.
Definition: Level.h:66
ogdf::CrossingsMatrix::map
Array< int > map
Definition: CrossingsMatrix.h:67
Array2D.h
Declaration and implementation of class Array2D which implements dynamic two dimensional arrays.
ogdf::CrossingsMatrix::operator()
int operator()(int i, int j) const
Definition: CrossingsMatrix.h:56
ogdf::CrossingsMatrix::~CrossingsMatrix
~CrossingsMatrix()
Definition: CrossingsMatrix.h:54
ogdf::HierarchyLevels
Representation of proper hierarchies used by Sugiyama-layout.
Definition: HierarchyLevels.h:51
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716