Interface of two-layer crossing minimization algorithms. More...
#include <ogdf/layered/LayerByLayerSweep.h>
Inheritance diagram for ogdf::LayerByLayerSweep:Public Member Functions | |
| LayerByLayerSweep () | |
| Initializes a two-layer crossing minimization module. | |
| virtual | ~LayerByLayerSweep () |
| virtual void | call (Level &L)=0 |
Performs crossing minimization for level L. | |
| virtual void | cleanup () override |
| Performs clean-up. | |
| virtual LayerByLayerSweep * | clone () const =0 |
| Returns a new instance of the two-layer crossing minimization module with the same option settings. | |
| virtual void | init (const HierarchyLevels &levels) |
Initializes the crossing minimization module for hierarchy levels levels. | |
| 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. | |
Interface of two-layer crossing minimization algorithms.
The interface of a two-layer crossing minimization algorithm consists of four methods:
Definition at line 58 of file LayerByLayerSweep.h.
|
inline |
Initializes a two-layer crossing minimization module.
Definition at line 71 of file LayerByLayerSweep.h.
|
inlinevirtual |
Definition at line 73 of file LayerByLayerSweep.h.
Performs crossing minimization for level L.
| L | is the level in the hierarchy on which nodes are permuted; the neighbor level (fixed level) is determined by the hierarchy. |
Implemented in ogdf::BarycenterHeuristic, ogdf::GreedyInsertHeuristic, ogdf::GreedySwitchHeuristic, ogdf::MedianHeuristic, ogdf::SiftingHeuristic, ogdf::SplitHeuristic, and ogdf::TwoLayerCrossMinSimDraw.
Performs clean-up.
Reimplemented from ogdf::LayeredCrossMinModule.
Reimplemented in ogdf::BarycenterHeuristic, ogdf::GreedyInsertHeuristic, ogdf::GreedySwitchHeuristic, ogdf::MedianHeuristic, ogdf::SiftingHeuristic, and ogdf::SplitHeuristic.
Definition at line 102 of file LayerByLayerSweep.h.
|
pure virtual |
Returns a new instance of the two-layer crossing minimization module with the same option settings.
Implemented in ogdf::TwoLayerCrossMinSimDraw, ogdf::BarycenterHeuristic, ogdf::GreedyInsertHeuristic, ogdf::GreedySwitchHeuristic, ogdf::MedianHeuristic, ogdf::SiftingHeuristic, and ogdf::SplitHeuristic.
|
inlinevirtual |
Initializes the crossing minimization module for hierarchy levels levels.
| levels | is the hierarchy on which the module shall operate. |
Reimplemented in ogdf::BarycenterHeuristic, ogdf::GreedyInsertHeuristic, ogdf::GreedySwitchHeuristic, ogdf::MedianHeuristic, ogdf::SiftingHeuristic, and ogdf::SplitHeuristic.
Definition at line 83 of file LayerByLayerSweep.h.
Performs crossing minimization for level L.
| L | is the level in the hierarchy on which nodes are permuted; the neighbor level (fixed level) is determined by the hierarchy. |
Definition at line 99 of file LayerByLayerSweep.h.
|
virtual |
|
inlineoverridevirtual |
Template method implementation of reduceCrossings from LayeredCrossMinModule.
Implements ogdf::LayeredCrossMinModule.
Definition at line 64 of file LayerByLayerSweep.h.