Created
November 2, 2021 17:51
-
-
Save cj2001/77275fa91334ee7379f919189eb0756d to your computer and use it in GitHub Desktop.
Load CORA edge list
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
// 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