Implementation of an implicit adjacency graph defined by a root vertex and a neighbors function.
| Initializer |
ImplicitAdjacencyGraph(V root, {V*} neighbors(V vertex)) |
| Attributes | |
empty | Source Codeshared actual default Boolean emptyAnswer whether the graph is empty, i.e. contains no vertices. Refines AdjacencyGraph.empty |
| Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: AdjacencyGraph<V> |
| Methods | |
bfsTraversal | Source Codeshared VertexTraversal bfsTraversal(V start, VertexVisitor visitor = ...)Breadth first traversal of the receiver. Parameters:
|
neighbors | Source Codeshared actual default {V*} neighbors(V vertex)All neighbor vertices of the given vertex. A neighbor is the target of an outgoing directed edge or the other endpoint of an undirected edge. Refines AdjacencyGraph.neighbors |
| Inherited Methods |
Methods inherited from: Object |
Methods inherited from: AdjacencyGraph<V> |
| Nested Interfaces | |
VertexTraversal | Source Codeshared VertexTraversal |
VertexVisitor | Source Codeshared VertexVisitor |