Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created December 28, 2019 06:46
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 prateekjoshi565/5783d0692b6665dc90c0dcc653177e59 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/5783d0692b6665dc90c0dcc653177e59 to your computer and use it in GitHub Desktop.
# load nodes details
with open("fb-pages-food.nodes") as f:
fb_nodes = f.read().splitlines()
# load edges (or links)
with open("fb-pages-food.edges") as f:
fb_links = f.read().splitlines()
len(fb_nodes), len(fb_links)
@francchimeri
Copy link

hie. can you please assist me. the code is giving me the error below after running it.

FileNotFoundError: [Errno 2] No such file or directory: 'fb-pages-food.nodes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment