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