randomWalk method
Iterable<V>
randomWalk(
- V vertex, {
- num edgeProbability(
- V source,
- V target
- bool selfAvoiding = false,
- Random? random,
- StorageStrategy<
V> ? vertexStrategy,
Traverses the vertices in a random order.
Implementation
Iterable<V> randomWalk(V vertex,
{num Function(V source, V target)? edgeProbability,
bool selfAvoiding = false,
Random? random,
StorageStrategy<V>? vertexStrategy}) =>
RandomWalkIterable(vertex,
successorsOf: successorsOf,
edgeProbability: edgeProbability,
selfAvoiding: selfAvoiding,
vertexStrategy: vertexStrategy);