Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

AdjacencyOracle.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/NodeArray.h>
35 #include <ogdf/basic/Array2D.h>
36 
37 namespace ogdf {
38 
40 
47 public:
58  explicit AdjacencyOracle(const Graph &G);
59 
62 
64  bool adjacent(const node, const node) const;
65 
66 private:
69 };
70 
71 }
Array2D< bool > m_adjacencyMatrix
A 2D-array where the entry is true if the nodes with the corresponding number are adjacent...
NodeArray< int > m_nodeNum
The internal number given to each node.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
bool adjacent(const node, const node) const
Returns true iff two vertices are adjacent.
~AdjacencyOracle()
The destructor.
Class for the representation of nodes.
Definition: Graph_d.h:167
Declaration and implementation of NodeArray class.
Tells you in constant time if two nodes are adjacent.
The namespace for all OGDF objects.
AdjacencyOracle(const Graph &G)
The constructor for the class, needs time O(n + m)
Declaration and implementation of class Array2D which implements dynamic two dimensional arrays...