#include <ogdf/energybased/davidson_harel/Planarity.h>
|
| | Planarity (GraphAttributes &AG) |
| | Initializes data structures to speed up later computations.
|
| |
| | ~Planarity () |
| |
| void | computeEnergy () override |
| | Computes energy of initial layout and stores it in m_energy.
|
| |
| | EnergyFunction (const string &funcname, GraphAttributes &AG) |
| | Initializes data dtructures to speed up later computations.
|
| |
| virtual | ~EnergyFunction () |
| |
| void | candidateTaken () |
| | Changes m_currentX and m_currentY by setting the position of m_testNode to m_testX and m_testY. Sets m_energy to m_candidateEnergy. Computes the energy of the layout stored in AG.
|
| |
| double | computeCandidateEnergy (const node v, const DPoint &newPos) |
| | sets m_testNode, m_testX and m_testY and computes the energy for the new configuration (vertex v moves to newPos)
|
| |
| double | energy () const |
| |
| string | getName () const |
| | prints the name of the energy function
|
| |
| void | printStatus () const |
| | prints status information for debugging
|
| |
|
| DPoint | currentPos (const node v) const |
| | returns the current position of vertex v
|
| |
| node | testNode () const |
| | returns the vertex that is under consideration in the current step
|
| |
| DPoint | testPos () |
| | returns candidate position for the node to be moved
|
| |
| double | m_candidateEnergy |
| | the energy of the layout if the candidate layout is chosen
|
| |
| double | m_energy |
| | energy of the current layout
|
| |
| const Graph & | m_G |
| | the graph that should be drawn
|
| |
| const string | m_name |
| | name of the energy function
|
| |
Definition at line 48 of file Planarity.h.
◆ Planarity()
Initializes data structures to speed up later computations.
◆ ~Planarity()
| ogdf::davidson_harel::Planarity::~Planarity |
( |
| ) |
|
◆ compCandEnergy()
| void ogdf::davidson_harel::Planarity::compCandEnergy |
( |
| ) |
|
|
overrideprivatevirtual |
◆ computeEnergy()
| void ogdf::davidson_harel::Planarity::computeEnergy |
( |
| ) |
|
|
overridevirtual |
◆ internalCandidateTaken()
| void ogdf::davidson_harel::Planarity::internalCandidateTaken |
( |
| ) |
|
|
overrideprivatevirtual |
◆ intersect()
| bool ogdf::davidson_harel::Planarity::intersect |
( |
const edge |
, |
|
|
const edge |
|
|
) |
| const |
|
private |
Returns 1 if edges cross else 0.
◆ lowLevelIntersect()
| bool ogdf::davidson_harel::Planarity::lowLevelIntersect |
( |
const DPoint & |
, |
|
|
const DPoint & |
, |
|
|
const DPoint & |
, |
|
|
const DPoint & |
|
|
) |
| const |
|
private |
Tests if two lines given by four points intersect.
◆ printInternalData()
| virtual void ogdf::davidson_harel::Planarity::printInternalData |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ m_crossingChanges
stores for all edges incident to the test node an array with the crossings that change if the candidate position is chosen
Definition at line 88 of file Planarity.h.
◆ m_crossingMatrix
| Array2D<bool>* ogdf::davidson_harel::Planarity::m_crossingMatrix |
|
private |
stores for each pair of edges if they cross
Definition at line 82 of file Planarity.h.
◆ m_edgeNums
| EdgeArray<int>* ogdf::davidson_harel::Planarity::m_edgeNums |
|
private |
◆ m_nonSelfLoops
| List<edge> ogdf::davidson_harel::Planarity::m_nonSelfLoops |
|
private |
list of edges that are not slef loops
Definition at line 90 of file Planarity.h.
The documentation for this class was generated from the following file: