![](/img/trans.png)
[英]OrientDB: Find all vertices that have no direct neighbour vertex of a given class
[英]Can I find all vertices that have no connected edges in OrientDB?
有沒有一種簡單的方法來查詢群集中沒有傳入邊的所有頂點?
這更完整,因為還涵蓋了集合存在的情況,但它是空的:
select from the_cluster where in().size() = 0
應該是這個嗎?
從the_cluster中選擇in_edgename為null
我知道這是一個古老的問題,但想到其他任何想知道同樣事情的人。
你可以這樣做:對於一個類的頂點說Vtex和類的邊說Edg
從Vtex中選擇('Edg')。size()= 0
這將返回Vtex類的所有頂點,這些頂點沒有Edg類型的傳入邊。
下面的SQL似乎工作(如邊緣存儲領域in
,並out
上頂點):
select from the_cluster where in is null
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.