simple random walk with graph