Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created November 2, 2021 17:51
Show Gist options
  • Save cj2001/77275fa91334ee7379f919189eb0756d to your computer and use it in GitHub Desktop.
Save cj2001/77275fa91334ee7379f919189eb0756d to your computer and use it in GitHub Desktop.
Load CORA edge list
// Load edge list
LOAD CSV WITH HEADERS FROM 'https://raw.githubusercontent.com/cj2001/pydata2021/main/notebooks/data/cora_edges.csv' AS line
WITH line
MATCH (source:Paper {id: line.source})
MATCH (target:Paper {id: line.target})
MERGE (source)-[:CITES]->(target)
RETURN COUNT(*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment