2017-08-14 75 views
0

我正在此查詢邊沿和節點返回數OrientDB

select * from (traverse both() FROM #33:0 WHILE $depth < 1) WHERE 
      @class = 'L' 

我在OrientDB

一個新手如何顯示節點和查詢的結果的邊數?

謝謝

回答

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 
+0

我得到0的結果,但情況並非如此 –