[
https://issues.apache.org/jira/browse/TINKERPOP-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16375083#comment-16375083
]
ASF GitHub Bot commented on TINKERPOP-1822:
-------------------------------------------
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]
```
> Repeat should depth first search
> --------------------------------
>
> Key: TINKERPOP-1822
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1822
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.3.0, 3.2.6
> Reporter: Robert Dale
> Priority: Major
>
> Perhaps optionally.
> See also:
> * https://groups.google.com/forum/#!topic/gremlin-users/gLSLxH_K-wE
> * https://github.com/apache/tinkerpop/pull/715
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)