OrientDB:所有对最短路径

时间:2015-11-04 13:56:40

标签: orientdb shortest-path

我正在尝试编写一个OSQL查询来计算所有节点对之间最短路径的长度但是,由于不允许在SELECT shortestPath($current, $e0, 'BOTH', 'Meets') FROM Employee LET $e0 = (SELECT FROM Employee where $current.nt_account > $parent.nt_account) 子句中有多个类,我想知道我是怎么做的可以遍历所有不同节点对。

我尝试了这个查询:

nt_account

java.lang.IllegalArgumentException: Vertex id can not be null 是员工ID)。

当我尝试执行查询时,出现以下错误:

$("#treeview").unbind("dblclick");

有人能帮助我吗?

干杯!

1 个答案:

答案 0 :(得分:0)

尝试此查询

select from (select $b.shortestPath from Employee let $b= ( SELECT shortestPath($parent.current,@this, 'BOTH', 'Meets') from Employee)) unwind $b
相关问题