#include <ogdf/energybased/davidson_harel/NodePairEnergy.h>
|
| | NodePairEnergy (const string energyname, GraphAttributes &AG) |
| |
| virtual | ~NodePairEnergy () |
| |
| void | computeEnergy () override |
| | computes energy for the layout at the beginning of the optimization process
|
| |
| | 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
|
| |
|
| void | compCandEnergy () override |
| | computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candidateEnergy.
|
| |
| double | computePairEnergy (const node v, const node w) const |
| |
| void | internalCandidateTaken () override |
| | changes the data of a specific energy function if the candidate was taken
|
| |
|
| 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 51 of file NodePairEnergy.h.
◆ NodePairEnergy()
| ogdf::davidson_harel::NodePairEnergy::NodePairEnergy |
( |
const string |
energyname, |
|
|
GraphAttributes & |
AG |
|
) |
| |
◆ ~NodePairEnergy()
| virtual ogdf::davidson_harel::NodePairEnergy::~NodePairEnergy |
( |
| ) |
|
|
inlinevirtual |
◆ adjacent()
| bool ogdf::davidson_harel::NodePairEnergy::adjacent |
( |
const node |
v, |
|
|
const node |
w |
|
) |
| const |
|
inlineprotected |
returns true in constant time if two vertices are adjacent.
Definition at line 72 of file NodePairEnergy.h.
◆ compCandEnergy()
| void ogdf::davidson_harel::NodePairEnergy::compCandEnergy |
( |
| ) |
|
|
overrideprivatevirtual |
◆ computeCoordEnergy()
| virtual double ogdf::davidson_harel::NodePairEnergy::computeCoordEnergy |
( |
node |
, |
|
|
node |
, |
|
|
const DPoint & |
, |
|
|
const DPoint & |
|
|
) |
| const |
|
protectedpure virtual |
◆ computeEnergy()
| void ogdf::davidson_harel::NodePairEnergy::computeEnergy |
( |
| ) |
|
|
overridevirtual |
◆ computePairEnergy()
| double ogdf::davidson_harel::NodePairEnergy::computePairEnergy |
( |
const node |
v, |
|
|
const node |
w |
|
) |
| const |
|
private |
◆ internalCandidateTaken()
| void ogdf::davidson_harel::NodePairEnergy::internalCandidateTaken |
( |
| ) |
|
|
overrideprivatevirtual |
◆ nodeNum()
| int ogdf::davidson_harel::NodePairEnergy::nodeNum |
( |
node |
v | ) |
const |
|
inlineprotected |
Returns the internal number given to each vertex.
Definition at line 69 of file NodePairEnergy.h.
◆ printInternalData()
| virtual void ogdf::davidson_harel::NodePairEnergy::printInternalData |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ shape()
◆ m_adjacentOracle
| const AdjacencyOracle ogdf::davidson_harel::NodePairEnergy::m_adjacentOracle |
|
private |
◆ m_candPairEnergy
| NodeArray<double> ogdf::davidson_harel::NodePairEnergy::m_candPairEnergy |
|
private |
◆ m_nodeNums
| NodeArray<int>* ogdf::davidson_harel::NodePairEnergy::m_nodeNums |
|
private |
◆ m_nonIsolated
| List<node> ogdf::davidson_harel::NodePairEnergy::m_nonIsolated |
|
private |
◆ m_pairEnergy
| Array2D<double>* ogdf::davidson_harel::NodePairEnergy::m_pairEnergy |
|
private |
◆ m_shape
The documentation for this class was generated from the following file: