|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
40 namespace fast_multipole_embedder {
The namespace for all OGDF objects.
Declaration of class LinearQuadtree.
uint32_t nextEdgeAdjIndex(uint32_t index) const
Returns the index of the next pair of index.
uint32_t twinNode(uint32_t index) const
Returns the other node (not index).
void allocate()
Allocates all memory.
Information about incident edges (16 bytes).
Class for the Well-Separated-Pairs-Decomposition (WSPD)
uint32_t m_maxNumNodes
Maximum number of nodes.
void clear()
Resets the array m_nodeInfo.
uint32_t wsNodeOfPair(uint32_t currPairIndex, NodeID a) const
Returns the other node (not a) of the pair with index currPairIndex.
uint32_t m_numPairs
Total number of pairs.
unsigned long sizeInBytes() const
NodeAdjInfo * m_nodeInfo
Array which holds the wspd information for one quadtree node.
uint32_t nextPair(uint32_t currPairIndex, NodeID a) const
Returns the index of the next pair of currPairIndex of the node with index a.
uint32_t firstEntry
The first pair in the edges chain.
~WSPD()
Destructor. Deallocates via OGDF_FREE_16.
uint32_t numPairs() const
Returns the total number of pairs.
uint32_t maxNumPairs() const
Returns the maximum number of pairs.
EdgeAdjInfo * m_pairs
Array containing all pairs.
LinearQuadtree::NodeID NodeID
Datastructures for edge chains itself and the edge chains of nodes.
void deallocate()
Releases all memory.
uint32_t firstPairEntry(NodeID nodeID) const
Returns the index of the first pair of node nodeID.
NodeAdjInfo & nodeInfo(NodeID nodeID) const
Returns the node info for index nodeID.
uint32_t degree
Total count of pairs where is either the first or second node.
uint32_t maxNumNodes() const
Returns the maximum number of nodes. Equals the maximum number of nodes in the LinearQuadtree.
uint32_t m_maxNumPairs
Upper bound for the number of pairs.
Information about an edge (16 bytes).
WSPD(uint32_t maxNumNodes)
Constructor. Allocates the memory via OGDF_MALLOC_16.
void addWSP(NodeID a, NodeID b)
Adds a well separated pair (a, b)
uint32_t numWSNodes(NodeID a) const
Returns the number of well separated nodes for node a.
EdgeAdjInfo & pairInfo(uint32_t pairIndex) const
Returns the pair info for index pairIndex.