Created
May 23, 2020 17:45
-
-
Save manekgarg/0a88970369a5994b0fdf43d61db4353e to your computer and use it in GitHub Desktop.
Prepare the basic graph and df for the analysis
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 an empty graph | |
G = nx.Graph() | |
# Import the dataset as a dataframe | |
df = pd.read_csv('/content/edgelist.csv') | |
# Check the dimension of the data set | |
print(df.shape) | |
df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment