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/05/01 17:52:35 UTC

[04/50] [abbrv] incubator-tinkerpop git commit: added a note about import static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*..thanks @dkuppitz.

added a note about import static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*..thanks @dkuppitz.


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

Branch: refs/heads/variables
Commit: 970f24d28867e9d121cdd51f6ffb698800db5433
Parents: fad0293
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue Apr 28 12:50:52 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue Apr 28 12:50:52 2015 -0600

----------------------------------------------------------------------
 docs/src/the-traversal.asciidoc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/970f24d2/docs/src/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc
index 47ef641..b64617d 100644
--- a/docs/src/the-traversal.asciidoc
+++ b/docs/src/the-traversal.asciidoc
@@ -39,6 +39,8 @@ image::step-types.png[width=650]
 
 A `GraphTraversal<S,E>` can be spawned off of a Graph, Vertex, Edge, or VertexProperty. It can also be spawned anonymously (i.e. empty) via `__`. A graph traversal is composed of an ordered list of steps. All the steps provided by `GraphTraversal` inherit from the more general forms diagrammed above. A list of all the steps (and their descriptions) are provided in the TinkerPop3 link:http://www.tinkerpop.com/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/graph/GraphTraversal.html[GraphTraversal JavaDoc]. The following subsections will demonstrate the GraphTraversal steps using the <<gremlin-console,Gremlin Console>>.
 
+NOTE: To reduce the verbosity of the expression, it is good to `import static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*`. This way, instead of doing `__.inE()` for an anonymous traversal, it is possible to simply write `inE()`.
+
 [[lambda-steps]]
 Lambda Steps
 ~~~~~~~~~~~~