Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

GreedySwitchHeuristic.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:
50  GreedySwitchHeuristic() : m_crossingMatrix(nullptr) { }
51 
53  GreedySwitchHeuristic(const GreedySwitchHeuristic &crossMin) : m_crossingMatrix(nullptr) { }
54 
55  ~GreedySwitchHeuristic() { delete m_crossingMatrix; }
56 
58  virtual LayerByLayerSweep *clone() const override { return new GreedySwitchHeuristic; }
59 
61  virtual void init (const HierarchyLevels &levels) override;
62 
64  virtual void call (Level &L) override;
65 
67  virtual void cleanup () override;
68 
69 private:
71 };
72 
73 
74 } // end namespace ogdf
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
Declaration of interface for two-layer crossing minimization algorithms.
Representation of levels in hierarchies.
Definition: Level.h:61
GreedySwitchHeuristic()
Creates a new instance of the greedy-switch heuristic.
virtual LayerByLayerSweep * clone() const override
Returns a new instance of the greed-switch heuristic with the same option settings.
GreedySwitchHeuristic(const GreedySwitchHeuristic &crossMin)
Creates a new instance of the greedy-switch heuristic.
The greedy-switch heuristic for 2-layer crossing minimization.
Implements crossings matrix which is used by some TwoLayerCrossingMinimization heuristics (e...
Declaration of class CrossingsMatrix.
Interface of two-layer crossing minimization algorithms.
The namespace for all OGDF objects.