Retrieve All Nodes That Can Be Reached By A Specific Node In A Directed Graph
问题 Given a graph in Neo4j that is directed (but possible to have cycles), how can I retrieve all nodes that are reachable from a specific node with Cypher? (Also: how long can I expect a query like this to take if my graph has 2 million nodes, and by extension 48 million nodes? A rough gauge will do eg. less than a minute, few minutes, an hour) 回答1: Cypher's uniqueness behavior is that relationships must be unique per path (each relationship can only be traversed once per path), but this isn't