Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

SiftingHeuristic.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 
38 namespace ogdf
39 {
40 
41 
43 
47 {
48 public:
51 
53  SiftingHeuristic(const SiftingHeuristic &crossMin);
54 
56 
58  virtual LayerByLayerSweep *clone() const override
59  {
60  return new SiftingHeuristic(*this);
61  }
62 
64  enum class Strategy { LeftToRight, DescDegree, Random };
65 
67  virtual void init (const HierarchyLevels &levels) override;
68 
70  virtual void call (Level &L) override;
71 
73  virtual void cleanup () override;
74 
76  Strategy strategy() const {
77  return m_strategy;
78  }
79 
85  void strategy (Strategy strategy) {
86  m_strategy = strategy;
87  }
88 
89 private:
92 };
93 
94 
95 } // end namespace ogdf
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
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.