Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

SiftingHeuristic.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
40 
44 {
45 public:
48 
50  SiftingHeuristic(const SiftingHeuristic &crossMin);
51 
53 
55  virtual LayerByLayerSweep *clone() const override
56  {
57  return new SiftingHeuristic(*this);
58  }
59 
61  enum class Strategy { LeftToRight, DescDegree, Random };
62 
64  virtual void init (const HierarchyLevels &levels) override;
65 
67  virtual void call (Level &L) override;
68 
70  virtual void cleanup () override;
71 
73  Strategy strategy() const {
74  return m_strategy;
75  }
76 
82  void strategy (Strategy strategy) {
83  m_strategy = strategy;
84  }
85 
86 private:
89 };
90 
91 }
CrossingsMatrix * m_crossingMatrix
Representation of proper hierarchies used by Sugiyama-layout.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Strategy
Enumerates the different sifting strategies.
Declaration of interface for two-layer crossing minimization algorithms.
Representation of levels in hierarchies.
Definition: Level.h:61
void init()
Definition: graphics.h:472
Strategy strategy() const
Get for Strategy.
Implements crossings matrix which is used by some TwoLayerCrossingMinimization heuristics (e...
Declaration of class CrossingsMatrix.
The sifting heuristic for 2-layer crossing minimization.
void strategy(Strategy strategy)
Set for Strategy.
virtual LayerByLayerSweep * clone() const override
Returns a new instance of the sifting heuristic with the same option settings.
Interface of two-layer crossing minimization algorithms.
The namespace for all OGDF objects.