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/06/24 23:59:15 UTC
incubator-tinkerpop git commit: Update docs around gephi.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 491c9b440 -> d16e07f52
Update docs around gephi.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/d16e07f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/d16e07f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/d16e07f5
Branch: refs/heads/master
Commit: d16e07f5293511f44620e4c16af92484f95dcaec
Parents: 491c9b4
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Jun 24 17:59:00 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Jun 24 17:59:00 2015 -0400
----------------------------------------------------------------------
docs/src/gremlin-applications.asciidoc | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d16e07f5/docs/src/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/gremlin-applications.asciidoc b/docs/src/gremlin-applications.asciidoc
index 51b00d2..d68df97 100644
--- a/docs/src/gremlin-applications.asciidoc
+++ b/docs/src/gremlin-applications.asciidoc
@@ -882,8 +882,8 @@ Consider the following traversal:
----
g = graph.traversal()
g.V(2).in().out('knows').
- has('age',gt,30).outE('created').
- has('weight',gt,0.5d).inV()
+ has('age',gt(30)).outE('created').
+ has('weight',gt(0.5d)).inV()
----
To visualize it insert the appropriately named `store('n')` steps where `n` is an integer, and the vertices will be highlighted in ascending store step order.
@@ -892,23 +892,22 @@ To visualize it insert the appropriately named `store('n')` steps where `n` is a
----
gremlin> g = graph.traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
-gremlin> g.V(2).in('knows').out('knows').has('age',gt,30).
- outE('created').has('weight',gt,0.5d).inV().values('name')
+gremlin> g.V(2).in('knows').out('knows').has('age',gt(30)).
+ outE('created').has('weight',gt(0.5d)).inV().values('name')
==>ripple
-gremlin> traversal = g.V(2).store('1').
- in('knows').store('2').
- out('knows').has('age',gt,30).store('3').
- outE('created').has('weight',gt,0.5d).inV().store('4')
-==>{v[5]=1}
+gremlin> traversal = g.V(2).store('1')
+gremlin> .in('knows').store('2')
+gremlin> .out('knows').has('age',gt(30)).store('3')
+gremlin> .outE('created').has('weight',gt(0.5d)).inV().store('4')
+==>v[5]
gremlin> traversal.getSideEffects().get('1')
-==>v[2]
+==>Optional[{v[2]=1}]
gremlin> traversal.getSideEffects().get('2')
-==>v[1]
+==>Optional[{v[1]=1}]
gremlin> traversal.getSideEffects().get('3')
-==>v[4]
+==>Optional[{v[4]=1}]
gremlin> traversal.getSideEffects().get('4')
-==>v[5]
-gremlin>
+==>Optional[{v[5]=1}]
gremlin> :> traversal
Visualizing vertices at step: 1... visited: 1
Visualizing vertices at step: 2... visited: 1