1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| hugegraph.traversal() 想要同时获得经过的边的信息,可以用 bothE().otherV()替换 both()
g.V("1:4822") .repeat(bothE().otherV().simplePath()).until(hasId("1:9947") .or().loops().is(gte(4))).hasId("1:9947") .path().limit(-1)
g.V("1:130133198506126945") .repeat(bothE().has('tran_amt',gte(10000000)).has('tran_amt',lte(10000000000)) .has('tran_date',gte(20170210)).has('tran_date',lte(20170230)) .otherV().simplePath()) .until(loops().is(gte(2))) .path().limit(200)
g.V("1:3301167").repeat(__.out("MyEdge")).times(2).dedup().count().next() g.V(1).repeat(out().simplePath()).until(hasId(5)).path().limit(1)
|