randomWalk method

Iterable<V> randomWalk(
  1. V vertex, {
  2. num edgeProbability(
    1. V source,
    2. V target
    )?,
  3. bool selfAvoiding = false,
  4. Random? random,
  5. 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);