You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/03/31 14:59:04 UTC
incubator-tinkerpop git commit: Corrected groovy code for
SubgraphStrategy in documentation.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 5b88f236c -> 6adfa7009
Corrected groovy code for SubgraphStrategy in documentation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/6adfa700
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/6adfa700
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/6adfa700
Branch: refs/heads/master
Commit: 6adfa700997d0ea12ca24770e8f39de9c3b1e3a1
Parents: 5b88f23
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Mar 31 08:58:41 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Mar 31 08:58:41 2015 -0400
----------------------------------------------------------------------
docs/src/the-traversal.asciidoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/6adfa700/docs/src/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc
index a241a80..5b73e33 100644
--- a/docs/src/the-traversal.asciidoc
+++ b/docs/src/the-traversal.asciidoc
@@ -1698,7 +1698,7 @@ SubgraphStrategy
----
graph = TinkerFactory.createModern()
vertexCriterion = { vertex -> true }
-edgeCriterion = { edge -> (int) edge.id() >= 8 && (int) edge.id() <= 10}
+edgeCriterion = { edge -> edge.id() >= 8 && edge.id() <= 10}
strategy = SubgraphStrategy.build().vertexPredicate(vertexCriterion).edgePredicate(edgeCriterion).create()
g = GraphTraversalSource.build().with(strategy).create(graph)
g.V() // shows all vertices as they all pass the vertexCriterion