The median heuristic for 2-layer crossing minimization. More...
#include <ogdf/layered/MedianHeuristic.h>
Public Member Functions | |
MedianHeuristic () | |
Creates a new instance of the median heuristic. | |
MedianHeuristic (const MedianHeuristic &crossMin) | |
Creates a new instance of the median heuristic. | |
virtual void | call (Level &L) override |
Calls the median 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 median 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 | |
NodeArray< int > | m_weight |
The median weight of a node. | |
The median heuristic for 2-layer crossing minimization.
Definition at line 42 of file MedianHeuristic.h.
|
inline |
Creates a new instance of the median heuristic.
Definition at line 45 of file MedianHeuristic.h.
|
inline |
Creates a new instance of the median heuristic.
Definition at line 48 of file MedianHeuristic.h.
Calls the median heuristic for level L
.
Implements ogdf::LayerByLayerSweep.
Does some clean-up after calls.
Reimplemented from ogdf::LayerByLayerSweep.
Definition at line 60 of file MedianHeuristic.h.
|
inlineoverridevirtual |
Returns a new instance of the median heuristic with the same option settings.
Implements ogdf::LayerByLayerSweep.
Definition at line 51 of file MedianHeuristic.h.
|
inlineoverridevirtual |
Initializes crossing minimization for hierarchy H.
Reimplemented from ogdf::LayerByLayerSweep.
Definition at line 54 of file MedianHeuristic.h.
The median weight of a node.
Definition at line 63 of file MedianHeuristic.h.