-
-
Save amankharwal/d3b4924b7d01f15244b8b05861829cde 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
pos = nx.spring_layout(subgraph_3437) | |
betweennessCentrality = nx.betweenness_centrality(subgraph_3437,normalized=True, endpoints=True) | |
node_size = [v * 10000 for v in betweennessCentrality.values()] | |
plt.figure(figsize=(20,20)) | |
nx.draw_networkx(subgraph_3437, pos=pos, with_labels=False, | |
node_size=node_size ) | |
plt.axis('off') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment