Uses a random walk on a weighted graph