2017-07-11 23:45:34 +08:00
|
|
|
BATCH_SIZE = 100
|
2017-07-29 23:03:34 +08:00
|
|
|
VERTEX_COUNT = 100000
|
2017-07-11 00:17:18 +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
|
2017-07-11 23:45:34 +08:00
|
|
|
if (i != 0 and i % BATCH_SIZE == 0) or \
|
|
|
|
(i + 1 == VERTEX_COUNT):
|
2017-07-11 00:17:18 +08:00
|
|
|
print(";")
|