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