DijkstraSearchIterable<V> constructor
DijkstraSearchIterable<V> ({
- required Iterable<
V> startVertices, - required Iterable<
V> successorsOf(- V vertex
- required bool targetPredicate(
- V vertex
- num edgeCost(
- V source,
- V target
- StorageStrategy<
V> ? vertexStrategy,
Implementation
DijkstraSearchIterable({
required this.startVertices,
required this.successorsOf,
required this.targetPredicate,
num Function(V source, V target)? edgeCost,
StorageStrategy<V>? vertexStrategy,
}) : edgeCost = edgeCost ?? constantFunction2(1),
vertexStrategy = vertexStrategy ?? StorageStrategy.defaultStrategy();