Last active
May 12, 2020 08:07
-
-
Save lennertVanSever/d59e5de87862991ce5b5d38baf073154 to your computer and use it in GitHub Desktop.
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
MATCH (a:Country), (b:Country) WHERE id(a) > id(b) | |
MATCH p=shortestPath((a)-[:borders*]-(b)) | |
WITH length(p) AS len, p | |
ORDER BY len DESC LIMIT 1 | |
RETURN p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment