61 virtual void call (
Level &L)
override;
64 virtual void cleanup ()
override { m_weight.init(); }
Representation of proper hierarchies used by Sugiyama-layout.
virtual void cleanup() override
Does some clean-up after calls.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
virtual void init(const HierarchyLevels &levels) override
Initializes crossing minimization for hierarchy H.
Declaration of interface for two-layer crossing minimization algorithms.
Representation of levels in hierarchies.
BarycenterHeuristic()
Creates a new instance of the barycenter heuristic.
NodeArray< double > m_weight
The barycenter weight of the nodes.
const Hierarchy & hierarchy() const override
Interface of two-layer crossing minimization algorithms.
The namespace for all OGDF objects.
The barycenter heuristic for 2-layer crossing minimization.
BarycenterHeuristic(const BarycenterHeuristic &crossMin)
Creates a new instance of the barycenter heuristic.
virtual LayerByLayerSweep * clone() const override
Returns a new instance of the barycenter heuristic with the same option settings. ...