Skip to content

Instantly share code, notes, and snippets.

@manekgarg
Created May 23, 2020 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manekgarg/c4f86a6909218cd345d2933946387273 to your computer and use it in GitHub Desktop.
Save manekgarg/c4f86a6909218cd345d2933946387273 to your computer and use it in GitHub Desktop.
pr = nx.pagerank(G)
# Plot the the graph again with Page Rank
plt.figure(figsize=(25,18))
nx.draw(G, edge_color = '#ced7d9',width = 4, arrowsize = 30, node_color = c_values, font_size =8,
alpha = .5, with_labels= True, node_size = [10000*pr[n] for n in G.nodes()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment