Github user krlohnes commented on the issue:

    https://github.com/apache/tinkerpop/pull/715
  
    Last comment for tonight, it looks like that while loop works with 
TinkerGraph and a simple query.  I believe the more complex query I wrote for 
the application I'm working on may have an issue. But for the k-ary tree I 
provided previously, that seems to work. 
    
    ```
    tgraph = TinkerGraph.open()
    tg = tgraph.traversal(SpeedRacerTraversalSource.class)
    
    v0 = tgraph.addVertex().property("level", "0:0").vertex
    v1_0 = tgraph.addVertex().property("level", "1:0").vertex
    v1_1 = tgraph.addVertex().property("level", "1:1").vertex
    v1_2 = tgraph.addVertex().property("level", "1:2").vertex
    v1_3 = tgraph.addVertex().property("level", "1:3").vertex
    
    v0.addEdge("child", v1_0, "num", 0)
    v0.addEdge("child", v1_2, "num", 2)
    v0.addEdge("child", v1_1, "num", 1)
    v0.addEdge("child", v1_3, "num", 3)
    
    gremlin> tg.V().has("level", 
"0:0").repeatDF(__.out("child").order().by(__.inE("child").values("num"), 
incr)).emitDF()
    loops: 0
    v[2]
    ==>v[2]
    loops: 0
    v[4]
    ==>v[4]
    loops: 0
    v[6]
    ==>v[6]
    loops: 0
    v[8]
    
    gremlin> tg.V().has("level", 
"0:0").repeatDF(__.out("child").order().by(__.inE("child").values("num"), 
incr)).emitDF()
    loops: 0
    v[2]
    ==>v[2]
    loops: 0
    v[4]
    ==>v[4]
    loops: 0
    v[6]
    ==>v[6]
    loops: 0
    v[8]
    ==>v[8]
    ```


---

Reply via email to