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
// Sandbox instance | |
https://10-0-1-157-32898.neo4jsandbox.com/browser/ | |
readonly / twitter | |
// find tweets that quote each other | |
MATCH tweets = (t:Tweet)-[:QUOTED*]->(t2:Tweet) WHERE not exists((t2)-[:QUOTED]->()) | |
RETURN tweets; | |
// find the longest chain | |
MATCH path = shortestpath((start:Tweet)-[:QUOTED*]->(origin)) |