Created
May 23, 2020 18:46
-
-
Save manekgarg/092a32cf35fd53ee93d06a49b3464a8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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