Networkx PageRank - Equal Ranks with Different Weights

你离开我真会死。 提交于 2019-12-06 15:06:02

The PageRank of a directed graph can be thought of as the probability distribution over all nodes of where a random surfer will end up after several random hops along directed edges (with random teleportation to address disconnected and dangling nodes). At each hop, the probability of the random surfer following a specific edge is its weight divided by the sum of weights on all edges leaving the current node.

In your example, the random surfer at each node has only 1 link to follow to hop to the other, thus no matter what weights you put on those 2 links, PageRank will always give (0.5,0.5).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!