Implement weighting with pagerank