The sifting heuristic for 2-layer crossing minimization. More...
#include <ogdf/layered/SiftingHeuristic.h>
Public Types | |
enum class | Strategy { LeftToRight , DescDegree , Random } |
Enumerates the different sifting strategies. More... | |
Public Member Functions | |
SiftingHeuristic () | |
Creates a new instance of the sifting heuristic with default option settings. | |
SiftingHeuristic (const SiftingHeuristic &crossMin) | |
Creates a new instance of the sifting heuristic with the same option settings as crossMin . | |
~SiftingHeuristic () | |
virtual void | call (Level &L) override |
Calls the sifting heuristic for level L . | |
virtual void | cleanup () override |
Does some clean-up after calls. | |
virtual LayerByLayerSweep * | clone () const override |
Returns a new instance of the sifting heuristic with the same option settings. | |
virtual void | init (const HierarchyLevels &levels) override |
Initializes crossing minimization for hierarchy H. | |
Strategy | strategy () const |
Get for Strategy. | |
void | strategy (Strategy strategy) |
Set for Strategy. | |
Public Member Functions inherited from ogdf::LayerByLayerSweep | |
LayerByLayerSweep () | |
Initializes a two-layer crossing minimization module. | |
virtual | ~LayerByLayerSweep () |
void | operator() (Level &L) |
Performs crossing minimization for level L . | |
virtual const HierarchyLevels * | reduceCrossings (const SugiyamaLayout &sugi, const Hierarchy &H, int &nCrossings) |
virtual const HierarchyLevels * | reduceCrossings (const SugiyamaLayout &sugi, Hierarchy &H, int &nCrossings) override |
Template method implementation of reduceCrossings from LayeredCrossMinModule. | |
Public Member Functions inherited from ogdf::LayeredCrossMinModule | |
LayeredCrossMinModule () | |
Creates empty module. | |
virtual | ~LayeredCrossMinModule () |
Destruct. | |
Private Attributes | |
CrossingsMatrix * | m_crossingMatrix |
Strategy | m_strategy |
The sifting heuristic for 2-layer crossing minimization.
Definition at line 43 of file SiftingHeuristic.h.
Enumerates the different sifting strategies.
Enumerator | |
---|---|
LeftToRight | |
DescDegree | |
Random |
Definition at line 57 of file SiftingHeuristic.h.
ogdf::SiftingHeuristic::SiftingHeuristic | ( | ) |
Creates a new instance of the sifting heuristic with default option settings.
ogdf::SiftingHeuristic::SiftingHeuristic | ( | const SiftingHeuristic & | crossMin | ) |
Creates a new instance of the sifting heuristic with the same option settings as crossMin
.
ogdf::SiftingHeuristic::~SiftingHeuristic | ( | ) |
Calls the sifting heuristic for level L
.
Implements ogdf::LayerByLayerSweep.
Does some clean-up after calls.
Reimplemented from ogdf::LayerByLayerSweep.
|
inlineoverridevirtual |
Returns a new instance of the sifting heuristic with the same option settings.
Implements ogdf::LayerByLayerSweep.
Definition at line 54 of file SiftingHeuristic.h.
|
overridevirtual |
Initializes crossing minimization for hierarchy H.
Reimplemented from ogdf::LayerByLayerSweep.
|
inline |
Get for Strategy.
Definition at line 69 of file SiftingHeuristic.h.
Set for Strategy.
strategy | is the Strategy to be set |
Definition at line 76 of file SiftingHeuristic.h.
|
private |
Definition at line 79 of file SiftingHeuristic.h.
|
private |
Definition at line 80 of file SiftingHeuristic.h.