0

https://networkx.github.io/documentation/development/_modules/networkx/algorithms/link_analysis/pagerank_alg.html

I want to calculate weighted personalized page rank. How should I implement with specific start node? Code:

import newtworkx as nx
G = nx.DiGraph()
[G.add_node(k) for k in [1,2,3,4]]
G.add_edge(2,1)
G.add_edge(3,1)
G.add_edge(4,1)
ppr1 = nx.pagerank(G,personalization={1:1, 2:1, 3:1, 4:1})

How to set the nstart and personalization ? Thanks!

Cocoa3338
  • 95
  • 1
  • 2
  • 12

0 Answers0