Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 3, 2019 16:08
Show Gist options
  • Save vladbatushkov/3ab668c1a24053fbd75ef449c4ed530c to your computer and use it in GitHub Desktop.
Save vladbatushkov/3ab668c1a24053fbd75ef449c4ed530c to your computer and use it in GitHub Desktop.
Visualize size.
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