Skip to content

Instantly share code, notes, and snippets.

@tkroman
Created July 10, 2014 08:34
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 tkroman/1bb883e8c161319ed86e to your computer and use it in GitHub Desktop.
Save tkroman/1bb883e8c161319ed86e to your computer and use it in GitHub Desktop.
rels
USING PERIODIC COMMIT 5000
LOAD CSV FROM 'file:///home/roman/dirs1.csv' AS line
MATCH
(parent:Node {nid: toInt(line[0])}),
(child: Node {nid: toInt(line[1])})
CREATE
(child)-[:CHILD_OF]->(parent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment