Skip to content

Instantly share code, notes, and snippets.

@manekgarg
Created May 23, 2020 18:46
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/092a32cf35fd53ee93d06a49b3464a8a to your computer and use it in GitHub Desktop.
Save manekgarg/092a32cf35fd53ee93d06a49b3464a8a to your computer and use it in GitHub Desktop.
bc = nx.centrality.betweenness.betweenness_centrality(G)
bc
# Plot the the graph again with the Between Centrality
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*bc[n] for n in G.nodes()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment