Created
October 10, 2017 00:01
-
-
Save n5i/30c30f15deff3bb886a9e23458eb1d0e to your computer and use it in GitHub Desktop.
Neo4j : Generate 1M connected nodes
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
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