The greedy-switch heuristic for 2-layer crossing minimization. More...
#include <ogdf/layered/GreedySwitchHeuristic.h>
Public Member Functions | |
GreedySwitchHeuristic () | |
Creates a new instance of the greedy-switch heuristic. | |
GreedySwitchHeuristic (const GreedySwitchHeuristic &crossMin) | |
Creates a new instance of the greedy-switch heuristic. | |
~GreedySwitchHeuristic () | |
virtual void | call (Level &L) override |
Calls the greedy switch 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 greed-switch heuristic with the same option settings. | |
virtual void | init (const HierarchyLevels &levels) override |
Initializes crossing minimization for hierarchy H. | |
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 |
The greedy-switch heuristic for 2-layer crossing minimization.
Definition at line 43 of file GreedySwitchHeuristic.h.
|
inline |
Creates a new instance of the greedy-switch heuristic.
Definition at line 46 of file GreedySwitchHeuristic.h.
|
inline |
Creates a new instance of the greedy-switch heuristic.
Definition at line 49 of file GreedySwitchHeuristic.h.
|
inline |
Definition at line 51 of file GreedySwitchHeuristic.h.
Calls the greedy switch heuristic for level L
.
Implements ogdf::LayerByLayerSweep.
Does some clean-up after calls.
Reimplemented from ogdf::LayerByLayerSweep.
|
inlineoverridevirtual |
Returns a new instance of the greed-switch heuristic with the same option settings.
Implements ogdf::LayerByLayerSweep.
Definition at line 54 of file GreedySwitchHeuristic.h.
|
overridevirtual |
Initializes crossing minimization for hierarchy H.
Reimplemented from ogdf::LayerByLayerSweep.
|
private |
Definition at line 66 of file GreedySwitchHeuristic.h.