javeme commented on issue #1900:
URL:
https://github.com/apache/incubator-hugegraph/issues/1900#issuecomment-1154058976
请使用规范语句查询:
```java
// 注意是 inE().count().is(0),而非 inE().is(0)
g.V(3).repeat(inE('child').outV().simplePath())
.until(or(inE().count().is(0),loops().is(eq(2))))
.path()
```
整理了一下示例数据:
```java
schema=graph.schema();
schema.vertexLabel('node').useCustomizeNumberId().create();
schema.edgeLabel('child').sourceLabel('node').targetLabel('node').create();
g.addV('node').property(id, 1).as('1')
.addV('node').property(id, 2).as('2')
.addV('node').property(id, 3).as('3')
.addV('node').property(id, 4).as('4')
.addE('child').from('1').to('2')
.addE('child').from('2').to('3')
.addE('child').from('4').to('3')
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]