Orientdb 比较导线测量中的顺序边特性
我想使用“遍历”查找两个顶点之间的路径。但我只需要具有比前一条边的相应属性更大的特定属性的边。例如,我想在时间顺序中使用边 在《小精灵》中,我可以做到:Orientdb 比较导线测量中的顺序边特性,orientdb,gremlin,Orientdb,Gremlin,我想使用“遍历”查找两个顶点之间的路径。但我只需要具有比前一条边的相应属性更大的特定属性的边。例如,我想在时间顺序中使用边 在《小精灵》中,我可以做到: select gremlin("current.as('x').outE('SentTo').as('c').inV.outE('SentTo'). filter{e, m -> m.get('c').getProperty('time') <= e.getProperty('time')}. inV.loop('x'){it.ob
select gremlin("current.as('x').outE('SentTo').as('c').inV.outE('SentTo').
filter{e, m -> m.get('c').getProperty('time') <= e.getProperty('time')}.
inV.loop('x'){it.object.getProperty('name') != 'John' && it.loops < 10}.
path.filter{it.last().getProperty('name') =='John'}")
FROM (SELECT FROM Person WHERE name = 'Bill')
选择gremlin(“current.as('x')。outE('SentTo')。as('c')。inV.outE('SentTo'))。
过滤器{e,m>>mGET('c').gtPrime'('Time')我想我听说OrrutDB最终支持TiNKPop3。如果是这样的话,那么考虑使用以下遍历:
g.V().has("Person", "name", "Bill").
repeat(outE().or(__.not(select("e")),
__.where(gte("e")).by("time")).as("e").otherV()).
until(has("name", "John").or().loops().is(gte(10))).has("name", "John").path().limit(1)
<>我想我听说OrrutDB最终支持TiNKPop3。如果是这样的话,那么考虑使用以下遍历:
g.V().has("Person", "name", "Bill").
repeat(outE().or(__.not(select("e")),
__.where(gte("e")).by("time")).as("e").otherV()).
until(has("name", "John").or().loops().is(gte(10))).has("name", "John").path().limit(1)