Github user okram commented on the pull request:
https://github.com/apache/tinkerpop/commit/e790e56aaa2118b07e36f2579502786bd9d79cc0#commitcomment-17830411
In docs/src/recipes/centrality.asciidoc:
In docs/src/recipes/centrality.asciidoc on line 26:
This is a really "local" way to do these calculations. I would do them as:
```
g.V().project("v","degree").by().by(bothE().count())
```
Why do it like this? Because you get a stream, not a single reduced map and
thus, you can, in a distributed manner, do an order limit which is typically
what you would do in this situation.
```
g.V().project("v","degree")
.by()
.by(bothE().count())
.order().by(select("degree"), decr).limit(10)
```
---
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.
---