我正在运行此查询
select * from (traverse both() FROM #33:0 WHILE $depth < 1) WHERE
@class = 'L'
我是OrientDB的新手
如何显示该查询结果的节点数和边数?
谢谢
答案 0 :(得分:0)
您可以使用count(*)
:
这会计算顶点:
select count(*) from (traverse both() FROM #33:0 WHILE $depth < 1)
WHERE $this instanceof V
这会计算边缘
select count(*) from (traverse bothE(), bothV() FROM #33:0 WHILE $depth < 1)
WHERE $this instanceof E