Initializer
ImplicitAdjacencyGraph(V root, {V*} neighbors(V vertex))
Parameters:
  • neighbors

    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.
    
Attributes
emptySource Codeshared actual default Boolean empty

Answer whether the graph is empty, i.e. contains no vertices.

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: AdjacencyGraph<V>
Methods
bfsTraversalSource Codeshared VertexTraversal bfsTraversal(V start, VertexVisitor visitor = ...)

Breadth first traversal of the receiver.

Parameters:
  • visitor = traversalVisitors.nullVertexVisitor<V>()
neighborsSource 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.
Inherited Methods
Methods inherited from: Object
Methods inherited from: AdjacencyGraph<V>
Nested Interfaces
VertexTraversalSource Codeshared VertexTraversal
VertexVisitorSource Codeshared VertexVisitor