如何查询以某个vertex为终点的路径

MATCH p=(v)-[*1..10]-(m) 
where id(v)=="host001" and all( midNode in [n in nodes(p) where id(n)<>id(v)  | n] where "frontPort" not in tags(midNode))
RETURN p
1 个赞