[英]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.