我试图使用 Scala 探索 janusgraph。
因此,对于给定的顶点 v1 和 v2,我想判断是否存在从 v1 到 v2 具有特定属性值的有向边并检索该边。
在gremlin中,我们通常会做一个,
g.V(v1).outE().where(otherV().is(v2)).hasNext()检查边缘是否存在并
ed = g.V(v1).outE().where(otherV().is(v2)).next()获取边缘。
那么,scala中对应的查询是什么?似乎不能以otherV()类似的方式使用。
谢谢。