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 2017/03/24 15:00:52 UTC
tinkerpop git commit: fixed a typo in docs.
Repository: tinkerpop
Updated Branches:
refs/heads/tp32 2fedaace4 -> e3e1dca7a
fixed a typo in docs.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/e3e1dca7
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/e3e1dca7
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/e3e1dca7
Branch: refs/heads/tp32
Commit: e3e1dca7ae3d151a23aa75ebc49a2460c8932d94
Parents: 2fedaac
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Fri Mar 24 09:00:49 2017 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Fri Mar 24 09:00:49 2017 -0600
----------------------------------------------------------------------
docs/src/reference/the-traversal.asciidoc | 28 +++++++++++++-------------
1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e3e1dca7/docs/src/reference/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index b0db605..f7aee7c 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -2065,20 +2065,20 @@ g.V().out().as('a').out().as('b').out().as('c').
By using the `from()` and `to()` modulators traversers can ensure that only certain sections of the path are are acyclic.
-[gremlin-grovvy]
-----
-g.addV().property(id, "A").as("a").
- addV().property(id, "B").as("b").
- addV().property(id, "C").as("c").
- addV().property(id, "D").as("d").
- addE("link").from("a").to("b").
- addE("link").from("b").to("c").
- addE("link").from("c").to("d").iterate()
-g.V("A").repeat(both().simplePath()).times(3).path() <1>
-g.V("D").repeat(both().simplePath()).times(3).path() <2>
-g.V("A").as("a").
- repeat(both().simplePath().from("a")).times(3).as("b").
- repeat(both().simplePath().from("b")).times(3).path() <3>
+[gremlin-groovy]
+----
+g.addV().property(id, 'A').as('a').
+ addV().property(id, 'B').as('b').
+ addV().property(id, 'C').as('c').
+ addV().property(id, 'D').as('d').
+ addE('link').from('a').to('b').
+ addE('link').from('b').to('c').
+ addE('link').from('c').to('d').iterate()
+g.V('A').repeat(both().simplePath()).times(3).path() <1>
+g.V('D').repeat(both().simplePath()).times(3).path() <2>
+g.V('A').as('a').
+ repeat(both().simplePath().from('a')).times(3).as('b').
+ repeat(both().simplePath().from('b')).times(3).path() <3>
----
<1> Traverse all acyclic 3-hop paths starting from vertex `A`