Created
May 3, 2019 16:08
-
-
Save vladbatushkov/3ab668c1a24053fbd75ef449c4ed530c to your computer and use it in GitHub Desktop.
Visualize size.
This file contains hidden or 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
MATCH (p) | |
WHERE p:Planet OR p:Star | |
WITH toInteger(ceil(p.sizeXEarth * 10)) as size, p | |
UNWIND range(1, size) as chunk | |
MERGE (pc:Chunk { n: chunk })-[:OF]->(p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment