Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

PlanarityGrid.h
Go to the documentation of this file.
1 
36 #pragma once
37 
40 
41 namespace ogdf {
42 namespace davidson_harel {
43 
45 public:
46  //initializes data structures to speed up later computations
47  explicit PlanarityGrid(GraphAttributes &AG);
49  // computes energy of initial layout and stores it in m_energy
50  void computeEnergy() override;
51 private:
52  // computes energy of candidate
53  void compCandEnergy() override;
54  // changes internal data if candidate is taken
55  void internalCandidateTaken() override;
56 #ifdef OGDF_DEBUG
57  virtual void printInternalData() const override;
58 #endif
59  const GraphAttributes &m_layout; //The current layout
60  UniformGrid *m_currentGrid; //stores grid for current layout
61  UniformGrid *m_candidateGrid; //stores grid for candidate layout
62 };
63 
64 }}
Declares class EnergyFunction...
const GraphAttributes & m_layout
Definition: PlanarityGrid.h:59
void computeEnergy() override
computes energy for the layout at the beginning of the optimization process
The interface for energy functions for the Davidson Harel graph drawing method.
void compCandEnergy() override
computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candid...
void internalCandidateTaken() override
changes the data of a specific energy function if the candidate was taken
Stores additional attributes of a graph (like layout information).
Declaration of class UniformGrid.
The namespace for all OGDF objects.
PlanarityGrid(GraphAttributes &AG)