38namespace fast_multipole_embedder {
Datastructures for edge chains itself and the edge chains of nodes.
Declaration of class LinearQuadtree.
Information about an edge (16 bytes).
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).
Information about incident edges (16 bytes).
uint32_t firstEntry
The first pair in the edges chain.
uint32_t degree
Total count of pairs where is either the first or second node.
Class for the Well-Separated-Pairs-Decomposition (WSPD)
uint32_t maxNumNodes() const
Returns the maximum number of nodes. Equals the maximum number of nodes in the LinearQuadtree.
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.
void deallocate()
Releases all memory.
uint32_t m_numPairs
Total number of pairs.
~WSPD()
Destructor. Deallocates via OGDF_FREE_16.
uint32_t maxNumPairs() const
Returns the maximum number of pairs.
EdgeAdjInfo * m_pairs
Array containing all pairs.
uint32_t m_maxNumNodes
Maximum number of nodes.
unsigned long sizeInBytes() const
uint32_t m_maxNumPairs
Upper bound for the number of pairs.
void clear()
Resets the array m_nodeInfo.
LinearQuadtree::NodeID NodeID
void addWSP(NodeID a, NodeID b)
Adds a well separated pair (a, b)
uint32_t firstPairEntry(NodeID nodeID) const
Returns the index of the first pair of node nodeID.
WSPD(uint32_t maxNumNodes)
Constructor. Allocates the memory via OGDF_MALLOC_16.
NodeAdjInfo & nodeInfo(NodeID nodeID) const
Returns the node info for index nodeID.
EdgeAdjInfo & pairInfo(uint32_t pairIndex) const
Returns the pair info for index pairIndex.
uint32_t numWSNodes(NodeID a) const
Returns the number of well separated nodes for node a.
void allocate()
Allocates all memory.
uint32_t wsNodeOfPair(uint32_t currPairIndex, NodeID a) const
Returns the other node (not a) of the pair with index currPairIndex.
uint32_t numPairs() const
Returns the total number of pairs.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.