Created
April 5, 2020 14:10
-
-
Save prateekjoshi565/99d025557b80a94872ccedf75347dc35 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
# find communities in the graph | |
c = girvan_newman(G.copy()) | |
# find the nodes forming the communities | |
node_groups = [] | |
for i in c: | |
node_groups.append(list(i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment