breadthFirstAll method

Iterable<V> breadthFirstAll(
  1. Iterable<V> vertices, {
  2. StorageStrategy<V>? vertexStrategy,
})

Traverses the vertices in a breadth-first order, starting with vertices.

Implementation

Iterable<V> breadthFirstAll(Iterable<V> vertices,
        {StorageStrategy<V>? vertexStrategy}) =>
    BreadthFirstIterable<V>(vertices,
        successorsOf: successorsOf,
        vertexStrategy: vertexStrategy ?? this.vertexStrategy);