Created
December 28, 2019 06:55
-
-
Save prateekjoshi565/cbd2b42548f5cf3b95649a24ec15d984 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
# create graph | |
G = nx.from_pandas_edgelist(fb_df, "node_1", "node_2", create_using=nx.Graph()) | |
# plot graph | |
plt.figure(figsize=(10,10)) | |
pos = nx.random_layout(G, seed=23) | |
nx.draw(G, with_labels=False, pos = pos, node_size = 40, alpha = 0.6, width = 0.7) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment