The sifting heuristic for 2-layer crossing minimization. More...
#include <ogdf/layered/SiftingHeuristic.h>
Inheritance diagram for ogdf::SiftingHeuristic: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 46 of file SiftingHeuristic.h.
|
strong |
Enumerates the different sifting strategies.
| Enumerator | |
|---|---|
| LeftToRight | |
| DescDegree | |
| Random | |
Definition at line 60 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 | ( | ) |
|
overridevirtual |
Calls the sifting heuristic for level L.
Implements ogdf::LayerByLayerSweep.
|
overridevirtual |
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 57 of file SiftingHeuristic.h.
|
overridevirtual |
Initializes crossing minimization for hierarchy H.
Reimplemented from ogdf::LayerByLayerSweep.
|
inline |
Get for Strategy.
Definition at line 72 of file SiftingHeuristic.h.
|
inline |
Set for Strategy.
| strategy | is the Strategy to be set |
Definition at line 79 of file SiftingHeuristic.h.
|
private |
Definition at line 82 of file SiftingHeuristic.h.
|
private |
Definition at line 83 of file SiftingHeuristic.h.