The grid sifting heuristic for crossing minimization. More...
#include <ogdf/layered/GridSifting.h>
Public Member Functions | |
const HierarchyLevelsBase * | reduceCrossings (const SugiyamaLayout &sugi, Hierarchy &H, int &nCrossings) override |
Calls the actual crossing minimization algorithm. More... | |
int | verticalStepsBound () |
Returns the current setting of option verticalStepsBound. More... | |
void | verticalStepsBound (int b) |
Sets the option verticalStepsBound to b . More... | |
Public Member Functions inherited from ogdf::LayeredCrossMinModule | |
LayeredCrossMinModule () | |
Creates empty module. More... | |
virtual | ~LayeredCrossMinModule () |
Destruct. More... | |
virtual void | cleanup () |
Performs clean-up. More... | |
Private Attributes | |
int | m_verticalStepsBound = 10 |
The grid sifting heuristic for crossing minimization.
Implementation of the grid sifting heuristic based on C. Bachmaier, W. Brunner, A. Gleißner, Grid Sifting: Leveling and Crossing Reduction, Technical Report MIP-1103, University of Passau, 2011.
This class implements the interface LayeredCrossMinModule and should be used as a part of the Sugiyama algorithm for drawing layered graphs.
Definition at line 94 of file GridSifting.h.
|
inlineoverridevirtual |
Calls the actual crossing minimization algorithm.
nCrossings
is not set by this implementation! Implements ogdf::LayeredCrossMinModule.
Definition at line 101 of file GridSifting.h.
|
inline |
Returns the current setting of option verticalStepsBound.
This option determines, how many levels can be traversed in vertical step of the grid sifting algorithm.
Definition at line 116 of file GridSifting.h.
|
inline |
Sets the option verticalStepsBound to b
.
Definition at line 119 of file GridSifting.h.
|
private |
Definition at line 122 of file GridSifting.h.