我有这样的图表:
(A, 900, B) //implying it takes 900 hours to move from task A to task B
(B, 800, C) // implying it takes 800 hours to move from B to C.
现在我假设在我的网页排名算法中任务 C 应该有更高的网页排名。但它没有发生。我正在使用 Neo4j 的页面排名算法来导入图表。我的问题是我是否以不正确的方式表示图表。
我认为这是表示图表并根据图表计算网页排名的一般问题。
我应该将图表表示为:
(A, 900/1700, B) //implying weight of edge is 900/1700, where 1700 is sum of edge weights
(B, 800/1700, C) // implying weight of edge is 800/1700
我也用python写了一个程序,但是基本的问题都是一样的怎么表示边图
最佳答案
关于python - 加权页面排名图表示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54626547/