GitHub user GCHQResearcher1337 opened a pull request:
https://github.com/apache/tinkerpop/pull/876
TINKERPOP-967 Support nested-repeat() structures
https://issues.apache.org/jira/browse/TINKERPOP-967
This allows nested loops to be used in traversals e.g.
```gremlin
g.V().repeat(out("knows")).until(repeat(out("created")).emit(hasId(3)))
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/GCHQResearcher1337/tinkerpop TINKERPOP-967
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/876.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #876
----
commit 320c14365f9a77a6942d8c5a6e997560634cf855
Author: GCHQResearcher1337 <39384472+gchqresearcher1337@...>
Date: 2018-06-04T09:35:29Z
TINKERPOP-967 Support nested-repeat() structures
Implementation of a loop counter stack and set of nested loop traversers as
described in TINKERPOP-967.
Added NESTED_LOOP (NL) supporting traversers alongside each SINGLE_LOOP
supporting traverser and
included these in the DefaultTraverserGeneratorFactory.
Added new Traversers and dependencies into GryoVersion.
Added extra functionality tests into RepeatTest and
DefaultTraverserGeneratorFactoryTest to check that
the nested loops work as exected and that the Traversers are correctly
selected respectively.
----
---