[英]Can I find all vertices that have no connected edges in OrientDB?
有没有一种简单的方法来查询群集中没有传入边的所有顶点?
这更完整,因为还涵盖了集合存在的情况,但它是空的:
select from the_cluster where in().size() = 0
Should it be this? 应该是这个吗?
select from the_cluster where in_edgename is null 从the_cluster中选择in_edgename为null
I know it's an old question but figured for anyone else who was wondering the same thing. 我知道这是一个古老的问题,但想到其他任何想知道同样事情的人。
You can do something like this: for a vertex of a class say Vtex and the Edge of class say Edg 你可以这样做:对于一个类的顶点说Vtex和类的边说Edg
select from Vtex where in('Edg').size() =0 从Vtex中选择('Edg')。size()= 0
This will return all the vertices of Vtex class which have no incoming edge of type Edg. 这将返回Vtex类的所有顶点,这些顶点没有Edg类型的传入边。
下面的SQL似乎工作(如边缘存储领域in
,并out
上顶点):
select from the_cluster where in is null
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.