I’m playing around with networkx (graph library in python) and I found documentation saying the PageRank algorithm takes edge weights into account when scoring, but I was wondering if larger edge weights were better or lower weights better?
I’m playing around with networkx (graph library in python) and I found documentation saying
Share
Shortly, large weights are better for incoming nodes.
PageRank works on a directed weighted graph. If page A has a link to page B, then the score for B goes up, i.e. the more input the page B (node) have, the higher is its score.
Wikipedia article on PageRank for further details.
Edit: let’s make an experiment. Create a directed graph with 3 nodes and two directed edges with equal weights.
Now, increase the weight of the (A,C) edge:
As you see, the node C got higher score with increasing weight of the incoming edge.