Skip to content

Instantly share code, notes, and snippets.

@manekgarg
Created May 23, 2020 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manekgarg/0a88970369a5994b0fdf43d61db4353e to your computer and use it in GitHub Desktop.
Save manekgarg/0a88970369a5994b0fdf43d61db4353e to your computer and use it in GitHub Desktop.
Prepare the basic graph and df for the analysis
# 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