0

我需要找到图中两个元素之间的所有路径。如果您使用“while”限制遍历功能,则只能找到部分信息,而我不能使用“traverse *”,因为它会加载所有图形。有没有办法获得限制边缘或类访问的元素之间的完整路径(包括或排除某些类)。

埃杰: 在此处输入图像描述

在该图上,我需要的是:

select fullPath(from(n1), to(n4))  
n1,path_1,n2_1,path_1,n3_1,path_1,n4
n1,path_2,n2_3,path_1,n4
n1,path_1,n2_2,path_1,n3_2,path_1,n4
n1,path_1,n2_2,path_2,n3_3,path_1,n4_1,path_2,n3_2,path_1,n4

select fullPath(from(n1), to(n4), include(path_1), maxDepth(100))  
n1,path_1,n2_1,path_1,n3_1,path_1,n4
n1,path_1,n2_2,path_1,n3_2,path_1,n4

语法只是一个自动记录的例子。

我正在为此开发一个java插件,但如果有办法实现这一点,它可能会更好。

4

0 回答 0