我有一个Cypher查询,它返回Neo4j的路径集合 .

我是否只能提取此集合中的所有节点和关系,而不是结果集中的路径集合?

MATCH (node_c)-[relation_c]-(node_b)-[relation_b]-(node_a)-[relation_a]-(n) 
WHERE n.Node_ID='1234'
AND node_a.Node_ID<>node_b.Node_ID 
AND node_b.Node_ID<>node_c.Node_ID 
AND node_c.Node_ID<>n.Node_ID 
RETURN DISTINCT n,relation_a,node_a,relation_b,node_b,relation_c,node_c

谷歌之后我自己想出来:

MATCH match (a)-[r1]-(b)-[r2]-(c)-[r3]-(d)    
WHERE n.Node_ID='1234'
RETURN DISTINCT r3, DISTINCT d

我提到了docs.neo4j.org/refcard/2.0网站和Neo4j Cypher备忘单v3 .