You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/06/08 13:33:18 UTC

[18/50] [abbrv] incubator-tinkerpop git commit: Added another example to "between vertices" recipes CTR

Added another example to "between vertices" recipes CTR


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/cb4fae19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/cb4fae19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/cb4fae19

Branch: refs/heads/tp31
Commit: cb4fae19785c71f7369cd14f9258483fbda7a3b1
Parents: 2a58313
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Jun 3 07:49:08 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Jun 3 07:49:08 2016 -0400

----------------------------------------------------------------------
 docs/src/recipes/between-vertices.asciidoc | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/cb4fae19/docs/src/recipes/between-vertices.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/recipes/between-vertices.asciidoc b/docs/src/recipes/between-vertices.asciidoc
index 03a4b3c..021e85b 100644
--- a/docs/src/recipes/between-vertices.asciidoc
+++ b/docs/src/recipes/between-vertices.asciidoc
@@ -45,7 +45,19 @@ vertices with identifiers "2" and "3".
 two vertices.
 
 The basic pattern of using `where()` step to find the "other" known vertex can be applied in far more complex
-scenarios. Consider the following schema:
+scenarios. For one such example, consider the following traversal that finds all the paths between a group of defined
+vertices:
+
+[gremlin-groovy,modern]
+----
+ids = [2,4,6].toArray()
+g.V(ids).as("a").
+  repeat(bothE().otherV().simplePath()).times(5).emit(hasId(within(ids))).as("b").
+  filter(select(last,"a","b").by(id).where("a", lt("b"))).
+  path().by().by(label)
+----
+
+For another example, consider the following schema:
 
 image:recipe-job-schema.png[width=750]