Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
42namespace ogdf {
43class HierarchyLevels;
44class Level;
45
49public:
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
66private:
70 int m_bigM; // is set to some big number in both constructors
71};
72
73}
Declaration and implementation of class Array2D which implements dynamic two dimensional arrays.
Declaration and implementation of Array class and Array algorithms.
Includes declaration of graph class.
Basic declarations, included by all source files.
The parameterized class Array2D implements dynamic two-dimensional arrays.
Definition Array2D.h:53
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:219
Implements crossings matrix which is used by some TwoLayerCrossingMinimization heuristics (e....
int m_bigM
need this for SimDraw to grant epsilon-crossings instead of zero-crossings
void init(Level &L, const EdgeArray< uint32_t > *edgeSubGraphs)
SimDraw init.
void swap(int i, int j)
int operator()(int i, int j) const
CrossingsMatrix(const HierarchyLevels &levels)
void init(Level &L)
ordinary init
Representation of proper hierarchies used by Sugiyama-layout.
Representation of levels in hierarchies.
Definition Level.h:66
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition Graph_d.h:717
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.