查询两者之间的关系

match(p1:Persion{name:"刘姥姥"}),
(p2:Persion{name:"贾宝玉"}),
p=shortestpath((p1)-[*..20]-(p2))
return p
Neo4j_IT

Neo4j_IT_02

Neo4j_IT_03