我创建了一个返回两个 OElement 之间完整路径的 java 函数,但我没有找到返回结果的正确方法。实际上它收集了 ArraList<ArrayList> 中的所有路径,但它没有显示在 Studio 中。我想我应该使用像 OResultSet 这样的东西,但我没有发现任何关于它的东西。
我实现了这个:完整路径(从,到,最大深度,条件)
select fullPath(#58:0, #65:0)
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(n1, n4, 100, include(path_1))
n1,path_1,n2_1,path_1,n3_1,path_1,n4
n1,path_1,n2_2,path_1,n3_2,path_1,n4
代码在这里:github上的fullPath
谢谢。