Includes declaration of graph class.
Basic declarations, included by all source files.
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).
Class for the representation of nodes.
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
The namespace for all OGDF objects.