Created
January 31, 2020 05:54
-
-
Save prateekjoshi565/f013153a06cae055bba3b0dc511bd52d 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
# 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