Computes PageRank on a given input graph