Walks#

Function for computing walks in a graph.

number_of_walks(G, walk_length)

Returns the number of walks connecting each pair of nodes in G

random_walk(G, *, start[, weight, seed])

Yields nodes visited by a random walk starting at start.