random_walk_rank function

Perform a random walk on the graph and return encounter rank