Github user spmallette commented on the pull request:
https://github.com/apache/tinkerpop/commit/2dbf66239e24b4519727333296f77a9d6fac9223#commitcomment-17846707
In docs/src/recipes/centrality.asciidoc:
In docs/src/recipes/centrality.asciidoc on line 147:
Started making this change bug `timeLimit()` doesn't seem to want to behave:
```text
gremlin> clock (1) {
g.V().repeat(groupCount('m').timeLimit(500).out()).times(30).cap('m').unfold().order().by(values,decr).limit(10).iterate()
}
==>503.11560499999996
gremlin> clock (1) {
g.V().repeat(groupCount('m').timeLimit(1000).out()).times(30).cap('m').unfold().order().by(values,decr).limit(10).iterate()
}
==>1003.034919
gremlin> clock (1) {
g.V().repeat(groupCount('m').timeLimit(10000).out()).times(30).cap('m').unfold().order().by(values,decr).limit(10).iterate()
}
==>10002.288115
```
The `timeLimit()` seems to kill the whole traversal rather than just the
inner traversal within the `repeat()`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---