40 namespace davidson_harel {
69 virtual void printInternalData()
const override;
bool adjacent(const node v, const node w) const
returns true in constant time if two vertices are adjacent.
double computePairEnergy(const node v, const node w) const
virtual double computeCoordEnergy(node, node, const DPoint &, const DPoint &) const =0
Computes the energy stored by a pair of vertices at the given positions.
NodePairEnergy(const string energyname, GraphAttributes &AG)
Declares class EnergyFunction...
const DIntersectableRect & shape(const node v) const
Returns the shape of a vertex v as a DIntersectableRect.
Declares class AdjacencyOracle.
Rectangles with real coordinates.
virtual ~NodePairEnergy()
NodeArray< double > m_candPairEnergy
bool adjacent(const node, const node) const
Returns true iff two vertices are adjacent.
The interface for energy functions for the Davidson Harel graph drawing method.
Stores additional attributes of a graph (like layout information).
Doubly linked lists (maintaining the length of the list).
Array2D< double > * m_pairEnergy
Class for the representation of nodes.
void internalCandidateTaken() override
changes the data of a specific energy function if the candidate was taken
List< node > m_nonIsolated
int nodeNum(node v) const
Returns the internal number given to each vertex.
void computeEnergy() override
computes energy for the layout at the beginning of the optimization process
Tells you in constant time if two nodes are adjacent.
NodeArray< int > * m_nodeNums
NodeArray< DIntersectableRect > m_shape
const AdjacencyOracle m_adjacentOracle
The namespace for all OGDF objects.
void compCandEnergy() override
computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candid...