Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# construct graph
G = nx.from_pandas_edgelist(team_df, "follower", "lead", ['performance'], create_using=nx.MultiDiGraph())
# get edge weights
_, wt = zip(*nx.get_edge_attributes(G, 'performance').items())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment