问题描述
我想用 OrientDB 从特定节点显示一些广度优先搜索的结果,但只包括返回图中至少有 2 个边的节点,但我不知道如何将我的节点限制为“edgecount 必须大于 1”。
select from (
traverse both() from (
select from Person where name = "Bruce Willis"
) while $depth <= 2
) limit 2500
使用:
select from (
traverse both() from (
select from Person where name = "Bruce Willis"
) while $depth <= 2
) where both().size() > 1 limit 2500
不起作用,因为 where 子句似乎考虑了数据库内容,而不是我返回的图表。
我的图由节点类“人”和“电影”组成,边标有“演员”。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)