Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

GreedySwitchHeuristic.h
Go to the documentation of this file.
1 
32 #pragma once
33 
36 
37 namespace ogdf {
38 
40 
44 {
45 public:
47  GreedySwitchHeuristic() : m_crossingMatrix(nullptr) { }
48 
50  GreedySwitchHeuristic(const GreedySwitchHeuristic &crossMin) : m_crossingMatrix(nullptr) { }
51 
52  ~GreedySwitchHeuristic() { delete m_crossingMatrix; }
53 
55  virtual LayerByLayerSweep *clone() const override { return new GreedySwitchHeuristic; }
56 
58  virtual void init (const HierarchyLevels &levels) override;
59 
61  virtual void call (Level &L) override;
62 
64  virtual void cleanup () override;
65 
66 private:
68 };
69 
70 }
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
void init()
Definition: graphics.h:472
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.