Skip to content

Instantly share code, notes, and snippets.

@n5i
Created October 10, 2017 00:01
Show Gist options
  • Save n5i/30c30f15deff3bb886a9e23458eb1d0e to your computer and use it in GitHub Desktop.
Save n5i/30c30f15deff3bb886a9e23458eb1d0e to your computer and use it in GitHub Desktop.
Neo4j : Generate 1M connected nodes
unwind range(1,1000000) as r
match (n) where id(n) = r
match (m) where id(m) = toInt(rand()*1000000)
create (n)-[:KNOWS]->(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment