Declaration and implementation of NodeArray class.
Tells you in constant time if two nodes are adjacent.
int index(node v, node w) const
Returns an index for m_adjacencies that corresponds to the entry of nodes v and w.
NodeArray< int > m_nodeNum
The internal number given to each node.
~AdjacencyOracle()
The destructor.
std::vector< bool > m_adjacencies
An entry is true iff the corresponding nodes are adjacent.
AdjacencyOracle(const Graph &G, int degreeThreshold=32)
The constructor for the class, needs time O(n^2 + m) ∩ Ω(n).
bool adjacent(node v, node w) const
Returns true iff vertices v and w are adjacent.
Data type for general directed graphs (adjacency list representation).
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.