Skip to content

Instantly share code, notes, and snippets.

@davisvictorns
Created December 18, 2020 02:44
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 davisvictorns/8508c8f3295af71fa2610ea9eb9f4811 to your computer and use it in GitHub Desktop.
Save davisvictorns/8508c8f3295af71fa2610ea9eb9f4811 to your computer and use it in GitHub Desktop.
degree = [G.degree(node) for node in G.nodes]
clustering = [nx.clustering(G, node) for node in G.nodes]
plt.hist(clustering)
plt.show()
plt.boxplot(clustering)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment