Add another example for appendix d of recipes. The addition find vertex pairs with more than one edge between them assuming undirected edges.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1c14dde5 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1c14dde5 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1c14dde5 Branch: refs/heads/TINKERPOP-1602 Commit: 1c14dde500f24f90eabb3d0517ecce6c8626100f Parents: 4be8a1b Author: Stephen Mallette <sp...@genoprime.com> Authored: Mon Jan 16 15:36:34 2017 -0500 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Mon Jan 16 15:36:34 2017 -0500 ---------------------------------------------------------------------- docs/src/recipes/appendix.asciidoc | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1c14dde5/docs/src/recipes/appendix.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/recipes/appendix.asciidoc b/docs/src/recipes/appendix.asciidoc index 9d0ea7b..15fda50 100644 --- a/docs/src/recipes/appendix.asciidoc +++ b/docs/src/recipes/appendix.asciidoc @@ -136,6 +136,16 @@ g.V().as("a"). select(keys) ---- +The following example assumes that the edges point in the `OUT` direction. Assuming undirected edges: + +[gremlin-groovy,modern] +---- +g.V().where(without("x")).as("a"). + outE().as("e").inV().as("b"). + filter(bothE().where(neq("e")).otherV().where(eq("a"))).store("x"). + select("a","b").dedup() +---- + [[appendix-e]] _In the "crew" graph, find vertices that match on a complete set of multi-properties._