2017-07-18 01:14:42 +08:00
|
|
|
BATCH_SIZE = 100
|
2017-07-29 23:03:34 +08:00
|
|
|
VERTEX_COUNT = 1000000
|
2017-07-18 01:14:42 +08:00
|
|
|
|
|
|
|
for i in range(VERTEX_COUNT):
|
|
|
|
print("CREATE (n%d {x: %d})" % (i, i))
|
|
|
|
# batch CREATEs because we can't execute all at once
|
|
|
|
if (i != 0 and i % BATCH_SIZE == 0) or \
|
|
|
|
(i + 1 == VERTEX_COUNT):
|
|
|
|
print(";")
|