Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
GridSifting.h
Go to the documentation of this file.
1
32#pragma once
33
37
38namespace ogdf {
39
53public:
61 int nRepeats() { return m_nRepeats; }
62
64 void nRepeats(int num) { m_nRepeats = num; }
65
68 int& nCrossings) {
69 BlockOrder* pBlockOrder = new BlockOrder(H, true);
70 pBlockOrder->globalSifting(sugi.runs(), m_nRepeats, &nCrossings);
71
72 return pBlockOrder;
73 }
74
75private:
76 int m_nRepeats = 10;
77};
78
96public:
103 int& nCrossings) override {
104 BlockOrder* pBlockOrder = new BlockOrder(H, false);
105 pBlockOrder->m_verticalStepsBound = m_verticalStepsBound;
106 pBlockOrder->gridSifting(sugi.runs());
107
108 return pBlockOrder;
109 }
110
118
121
122private:
124};
125
126}
Declaration of BlockOrder and related classes.
Declaration of interface for two-layer crossing minimization algorithms.
Declaration of Sugiyama algorithm.
Hierarchical graph representation used by GlobalSifting and GridSifting algorithms.
Definition BlockOrder.h:122
The global sifting heuristic for crossing minimization.
Definition GridSifting.h:52
void nRepeats(int num)
Sets the option nRepeats to num.
Definition GridSifting.h:64
const HierarchyLevelsBase * reduceCrossings(const SugiyamaLayout &sugi, Hierarchy &H, int &nCrossings)
Implementation of interface LateredCrossMinModule.
Definition GridSifting.h:67
int nRepeats()
Returns the current setting of option nRepeats.
Definition GridSifting.h:61
The grid sifting heuristic for crossing minimization.
Definition GridSifting.h:95
const HierarchyLevelsBase * reduceCrossings(const SugiyamaLayout &sugi, Hierarchy &H, int &nCrossings) override
Calls the actual crossing minimization algorithm.
void verticalStepsBound(int b)
Sets the option verticalStepsBound to b.
int verticalStepsBound()
Returns the current setting of option verticalStepsBound.
Representation of proper hierarchies used by Sugiyama-layout.
Definition Hierarchy.h:43
Interface of crossing minimization algorithms for layered graphs.
Sugiyama's layout algorithm.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.