Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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