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 2017/10/26 17:15:17 UTC
[25/50] tinkerpop git commit: TINKERPOP-1784 Added some more vertex
features
TINKERPOP-1784 Added some more vertex features
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d1d38ed8
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d1d38ed8
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d1d38ed8
Branch: refs/heads/TINKERPOP-1784
Commit: d1d38ed8a6770aca35fd73ffde85e4fb75d9fec6
Parents: efe794e
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Sep 29 13:26:27 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Oct 26 13:14:36 2017 -0400
----------------------------------------------------------------------
gremlin-test/features/map/Vertex.feature | 105 ++++++++++++++++++++++++++
1 file changed, 105 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d1d38ed8/gremlin-test/features/map/Vertex.feature
----------------------------------------------------------------------
diff --git a/gremlin-test/features/map/Vertex.feature b/gremlin-test/features/map/Vertex.feature
index 9aa506c..1905f3a 100644
--- a/gremlin-test/features/map/Vertex.feature
+++ b/gremlin-test/features/map/Vertex.feature
@@ -169,3 +169,108 @@ Feature: Step - V(), E(), out(), in(), both(), inE(), outE(), bothE()
| e[josh-created->lop] |
| e[josh-created->ripple] |
| e[marko-knows->josh] |
+
+ Scenario: g_VX1X_outE_inV
+ Given the modern graph
+ And using the parameter v1 is "v[marko]"
+ And the traversal of
+ """
+ g.V(v1).both()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[vadas] |
+ | v[josh] |
+ | v[lop] |
+
+ Scenario: g_VX2X_inE_outV
+ Given the modern graph
+ And using the parameter v2 is "v[vadas]"
+ And the traversal of
+ """
+ g.V(v2).inE().outV()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[marko] |
+
+ Scenario: g_V_outE_hasXweight_1X_outV
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().outE().has("weight",1.0).outV()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[marko] |
+ | v[josh] |
+
+ Scenario: g_V_out_outE_inV_inE_inV_both_name
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().out().outE().inV().inE().inV().both().values("name")
+ """
+ When iterated to list
+ Then the result should be unordered
+ | marko |
+ | marko |
+ | marko |
+ | josh |
+ | josh |
+ | josh |
+ | josh |
+ | peter |
+ | peter |
+ | peter |
+
+ Scenario: g_VX1X_outEXknowsX_bothV_name
+ Given the modern graph
+ And using the parameter v1 is "v[marko]"
+ And the traversal of
+ """
+ g.V(v1).outE("knows").bothV().values("name")
+ """
+ When iterated to list
+ Then the result should be unordered
+ | marko |
+ | marko |
+ | josh |
+ | vadas |
+
+ Scenario: g_VX1X_outE_otherV
+ Given the modern graph
+ And using the parameter v1 is "v[marko]"
+ And the traversal of
+ """
+ g.V(v1).outE().otherV()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[vadas] |
+ | v[josh] |
+ | v[lop] |
+
+ Scenario: g_VX4X_bothE_otherV
+ Given the modern graph
+ And using the parameter v4 is "v[josh]"
+ And the traversal of
+ """
+ g.V(v4).bothE().otherV()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[marko] |
+ | v[ripple] |
+ | v[lop] |
+
+ Scenario: g_VX4X_bothE_hasXweight_lt_1X_otherV
+ Given the modern graph
+ And using the parameter v4 is "v[josh]"
+ And the traversal of
+ """
+ g.V(v4).bothE().has("weight", P.lt(1.0)).otherV()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | v[lop] |
\ No newline at end of file