Skip to content

Instantly share code, notes, and snippets.

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
pos = nx.random_layout(G, seed=23)
nx.draw(G, with_labels=False, pos = pos, node_size = 40, alpha = 0.6, width = 0.7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment