You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ke...@apache.org on 2023/10/23 23:28:08 UTC

[tinkerpop] branch TINKERPOP-2978-3 updated: PR updates

This is an automated email from the ASF dual-hosted git repository.

kenhuuu pushed a commit to branch TINKERPOP-2978-3
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2978-3 by this push:
     new c139720ce0 PR updates
c139720ce0 is described below

commit c139720ce0d21c0605088a7a06297f6b6d1886ec
Author: Ken Hu <10...@users.noreply.github.com>
AuthorDate: Mon Oct 23 16:27:34 2023 -0700

    PR updates
---
 .../dev/future/proposal-3-remove-closures.asciidoc | 12 ++--
 docs/src/dev/provider/gremlin-semantics.asciidoc   |  4 +-
 docs/src/reference/the-traversal.asciidoc          | 48 +++++++++-------
 docs/src/upgrade/release-3.7.x.asciidoc            |  6 +-
 .../traversal/dsl/graph/GraphTraversal.java        |  2 +-
 .../process/traversal/step/map/DifferenceStep.java |  1 -
 .../process/traversal/step/map/IntersectStep.java  |  1 -
 .../process/traversal/step/map/ProductStep.java    |  1 -
 .../traversal/step/map/TraversalMergeStep.java     | 12 +---
 .../traversal/step/map/CombineStepTest.java        |  6 --
 .../traversal/step/map/ConjoinStepTest.java        |  5 +-
 .../traversal/step/map/DifferenceStepTest.java     |  2 -
 .../traversal/step/map/DisjunctStepTest.java       |  2 -
 .../traversal/step/map/IntersectStepTest.java      |  2 -
 .../traversal/step/map/ProductStepTest.java        |  2 -
 .../traversal/step/map/TraversalMergeStepTest.java |  3 -
 .../src/Gremlin.Net/Process/Traversal/__.cs        | 64 +++++++++++++++++++---
 .../gremlin/test/features/map/Combine.feature      |  8 +--
 18 files changed, 105 insertions(+), 76 deletions(-)

diff --git a/docs/src/dev/future/proposal-3-remove-closures.asciidoc b/docs/src/dev/future/proposal-3-remove-closures.asciidoc
index a86a0a65af..87cace007c 100644
--- a/docs/src/dev/future/proposal-3-remove-closures.asciidoc
+++ b/docs/src/dev/future/proposal-3-remove-closures.asciidoc
@@ -905,7 +905,7 @@ below:
 * <<union_list, union()>>
 * <<difference_list, difference()>>
 * <<disjunct_list, disjunct()>>
-* <<join_list, join()>>
+* <<conjoin_list, conjoin()>>
 
 === Gremlin Language Variant Function Names
 
@@ -941,7 +941,7 @@ below:
 |disjunct() |disjunct() |disjunct() |disjunct() |Disjunct()
 |Disjunct()
 
-|join() |join() |join() |join() |Join() |Join()
+|conjoin() |conjoin() |conjoin() |conjoin() |Conjoin() |Conjoin()
 |===
 
 '''''
@@ -1340,7 +1340,7 @@ g.inject([1,2,4]).disjunct([1, 2, 3])
 ==>[3, 4]
 ....
 
-=== `join()` [[join_list]]
+=== `conjoin()` [[conjoin_list]]
 
 Returns the join of the incoming array and delimiter passed as a
 parameter. This will return a String of the values joined together with
@@ -1348,7 +1348,7 @@ the delimiter.
 
 ==== Signature(s)
 
-`join(delimiter)`
+`conjoin(delimiter)`
 
 ==== Parameters
 
@@ -1364,9 +1364,9 @@ String data types. If non-array data types are passed in then an
 A string of the values joined together with the delimiter
 
 ....
-g.inject([1,2]).join("5")
+g.inject([1,2]).conjoin("5")
 ==>152
-g.inject([1,2,3]).join(";")
+g.inject([1,2,3]).conjoin(";")
 ==>1;2;3
 ....
 
diff --git a/docs/src/dev/provider/gremlin-semantics.asciidoc b/docs/src/dev/provider/gremlin-semantics.asciidoc
index a71145f106..da414c45ae 100644
--- a/docs/src/dev/provider/gremlin-semantics.asciidoc
+++ b/docs/src/dev/provider/gremlin-semantics.asciidoc
@@ -740,7 +740,7 @@ link:https://tinkerpop.apache.org/docs/x.y.z/reference/#call-step[reference]
 
 *Arguments:*
 
-* `Object` - A list of items (as an Iterable or an array) a traversal that will produce a list of items.
+* `Object` - A list of items (as an Iterable or an array) or a traversal that will produce a list of items.
 
 *Modulation:*
 
@@ -759,7 +759,7 @@ will cause exceptions to be thrown.
 
 See: link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/CombineStep.java[source],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#combine-step[reference],
-link:https://tinkerpop.apache.org/docs/x.y.z/reference/#merge-step[reference],
+link:https://tinkerpop.apache.org/docs/x.y.z/reference/#merge-step[merge() reference],
 
 [[concat-step]]
 === concat()
diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index 05f77750ff..7703754e66 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -1151,6 +1151,7 @@ will throw an `IllegalArgumentException` if any other type is encountered (inclu
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().combine(["james","jen","marko","vadas"])
+g.V().values("name").fold().combine(__.constant("stephen").fold())
 ----
 
 *Additional References*
@@ -1196,6 +1197,24 @@ link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gre
 link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#concat-Traversal++[`concat(Traversal)`]
 link:++https://tinkerpop.apache.org/docs/x.y.z/dev/provider/#concat-step++[`Semantics`]
 
+[[conjoin-step]]
+=== Conjoin Step
+
+The `conjoin()`-step (*map*) joins together the elements in the incoming list traverser together with the provided argument
+as a delimiter. The resulting `String` is added to the Traversal Stream. This step only expects list data (array or
+Iterable) in the incoming traverser and will throw an `IllegalArgumentException` if any other type is encountered
+(including null). However, null is allowed as an element within the list and is converted to "null".
+
+[gremlin-groovy,modern]
+----
+g.V().values("name").fold().conjoin("+")
+----
+
+*Additional References*
+
+link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#conjoin-String++[`conjoin(String)`]
+link:++https://tinkerpop.apache.org/docs/x.y.z/dev/provider/#conjoin-step++[`Semantics`]
+
 [[connectedcomponent-step]]
 === ConnectedComponent Step
 
@@ -1411,6 +1430,7 @@ encountered (including null).
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().difference(["lop","ripple"])
+g.V().values("name").fold().difference(__.V().limit(2).values("name").fold())
 ----
 
 *Additional References*
@@ -1428,6 +1448,7 @@ type is encountered (including null).
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().disjunct(["lop","peter","sam"]) <1>
+g.V().values("name").fold().disjunct(__.V().limit(3).values("name").fold())
 ----
 
 <1> Find the unique names between two group of names
@@ -1946,6 +1967,7 @@ type is encountered (including null).
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().intersect(["marko","josh","james","jen"])
+g.V().values("name").fold().intersect(__.V().limit(2).values("name").fold())
 ----
 
 *Additional References*
@@ -2161,24 +2183,6 @@ link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gre
 link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#is-org.apache.tinkerpop.gremlin.process.traversal.P-++[`is(P)`],
 link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/P.html++[`P`]
 
-[[conjoin-step]]
-=== Conjoin Step
-
-The `conjoin()`-step (*map*) joins together the elements in the incoming list traverser together with the provided argument
-as a delimiter. The resulting `String` is added to the Traversal Stream. This step only expects list data (array or
-Iterable) in the incoming traverser and will throw an `IllegalArgumentException` if any other type is encountered
-(including null). However, null is allowed as an element within the list and is converted to "null".
-
-[gremlin-groovy,modern]
-----
-g.V().values("name").fold().conjoin("+")
-----
-
-*Additional References*
-
-link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#conjoin-String++[`conjoin(String)`]
-link:++https://tinkerpop.apache.org/docs/x.y.z/dev/provider/#conjoin-step++[`Semantics`]
-
 [[key-step]]
 === Key Step
 
@@ -2715,6 +2719,7 @@ step in that it doesn't allow duplicates.
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().merge(["james","jen","marko","vadas"])
+g.V().values("name").fold().merge(__.constant("james").fold())
 ----
 
 *Additional References*
@@ -3466,6 +3471,7 @@ other type is encountered (including null).
 [gremlin-groovy,modern]
 ----
 g.V().values("name").fold().product(["james","jen"])
+g.V().values("name").fold().product(__.V().has("age").limit(1).values("age").fold())
 ----
 
 *Additional References*
@@ -3891,9 +3897,11 @@ reversed String will be returned.
 
 [gremlin-groovy,modern]
 ----
-g.V().values("name").reverse()
-g.V().values("name").fold().reverse()
+g.V().values("name").reverse() <1>
+g.V().values("name").order().fold().reverse() <2>
 ----
+<1> Reverse the order of the characters in each name.
+<2> Fold all the names into a list in ascending order and then reverse the list's ordering (into descending).
 
 link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#reverse--++[`reverse()`]
 
diff --git a/docs/src/upgrade/release-3.7.x.asciidoc b/docs/src/upgrade/release-3.7.x.asciidoc
index fbfae20e0f..afcb5f40bc 100644
--- a/docs/src/upgrade/release-3.7.x.asciidoc
+++ b/docs/src/upgrade/release-3.7.x.asciidoc
@@ -216,7 +216,7 @@ See: link:https://issues.apache.org/jira/browse/TINKERPOP-2672[TINKERPOP-2672]
 
 ==== List Traverser based Steps
 Additional List manipulation/filter steps have been added to replace the use of closures: `any()`, `all()`, `product()`,
-`merge()`, `intersect()`, `combine()`, `join()`, `difference()`,`disjunct()` and `reverse()`.
+`merge()`, `intersect()`, `combine()`, `conjoin()`, `difference()`,`disjunct()` and `reverse()`.
 
 The following example demonstrates usage of the newly introduced steps:
 
@@ -240,7 +240,7 @@ gremlin> g.V().values("age").fold().difference([32,30,50])
 ==>[35,27,29]
 gremlin> g.V().values("age").order().by(desc).fold().reverse()
 ==>[27,29,32,35]
-gremlin> g.V().values("age").fold().join("-")
+gremlin> g.V().values("age").fold().conjoin("-")
 ==>29-27-32-35
 ----
 
@@ -251,7 +251,7 @@ link:https://tinkerpop.apache.org/docs/x.y.z/reference/#product-step[product()-s
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#merge-step[merge()-step],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#intersect-step[intersect()-step],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#combine-step[combine()-step],
-link:https://tinkerpop.apache.org/docs/x.y.z/reference/#join-step[join()-step],
+link:https://tinkerpop.apache.org/docs/x.y.z/reference/#join-step[conjoin()-step],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#difference-step[difference()-step],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#disjunct-step[disjunct()-step]
 
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
index 9f3168d7de..ad2bf1403e 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
@@ -1718,7 +1718,7 @@ public interface GraphTraversal<S, E> extends Traversal<S, E> {
      * Joins together the elements of the incoming list traverser together with the provided delimiter.
      *
      * @return the traversal with an appended {@link ConjoinStep}.
-     * @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#join-step" target="_blank">Reference Documentation - Join Step</a>
+     * @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#conjoin-step" target="_blank">Reference Documentation - Conjoin Step</a>
      * @since 3.7.1
      */
     public default GraphTraversal<S, String> conjoin(final String delimiter) {
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStep.java
index 427ff7e78c..1317f931c4 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStep.java
@@ -24,7 +24,6 @@ import org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent;
 import org.apache.tinkerpop.gremlin.process.traversal.traverser.TraverserRequirement;
 import org.apache.tinkerpop.gremlin.process.traversal.util.ListFunction;
 
-import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStep.java
index 506ae0fc31..232042bdf2 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStep.java
@@ -24,7 +24,6 @@ import org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent;
 import org.apache.tinkerpop.gremlin.process.traversal.traverser.TraverserRequirement;
 import org.apache.tinkerpop.gremlin.process.traversal.util.ListFunction;
 
-import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStep.java
index 9f60ac9184..b14c02ba92 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStep.java
@@ -27,7 +27,6 @@ import org.apache.tinkerpop.gremlin.process.traversal.util.ListFunction;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.HashSet;
 import java.util.List;
 import java.util.Objects;
 import java.util.Set;
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStep.java
index abc90b4a8f..3e339482b7 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStep.java
@@ -24,16 +24,11 @@ import org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent;
 import org.apache.tinkerpop.gremlin.process.traversal.traverser.TraverserRequirement;
 import org.apache.tinkerpop.gremlin.process.traversal.util.ListFunction;
 import org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil;
-import org.apache.tinkerpop.gremlin.structure.util.StringFactory;
-import org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils;
 
-import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
@@ -46,6 +41,7 @@ import java.util.Set;
 public final class TraversalMergeStep<S, E> extends ScalarMapStep<S, E> implements TraversalParent, ListFunction {
     private Traversal.Admin<S, E> valueTraversal;
     private Object parameterItems;
+
     public TraversalMergeStep(final Traversal.Admin traversal, final Object values) {
         super(traversal);
 
@@ -61,9 +57,9 @@ public final class TraversalMergeStep<S, E> extends ScalarMapStep<S, E> implemen
 
     @Override
     protected E map(final Traverser.Admin<S> traverser) {
-        S incoming = traverser.get();
+        final S incoming = traverser.get();
 
-        Map mapA = (incoming instanceof Map) ? (Map) incoming : null;
+        final Map mapA = (incoming instanceof Map) ? (Map) incoming : null;
         if (mapA != null) {
             final Object mapB = (valueTraversal != null) ? TraversalUtil.apply(traverser, valueTraversal) : parameterItems;
             if (!(mapB instanceof Map)) {
@@ -116,8 +112,6 @@ public final class TraversalMergeStep<S, E> extends ScalarMapStep<S, E> implemen
         final TraversalMergeStep<S, E> clone = (TraversalMergeStep<S, E>) super.clone();
         if (null != this.valueTraversal) {
             clone.valueTraversal = this.valueTraversal.clone();
-        } else if (this.parameterItems instanceof Map) {
-            clone.parameterItems = new HashMap((Map) this.parameterItems);
         } else {
             clone.parameterItems = this.parameterItems;
         }
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CombineStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CombineStepTest.java
index 180365a6bd..15c5d5cbe6 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CombineStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/CombineStepTest.java
@@ -18,24 +18,18 @@
  */
 package org.apache.tinkerpop.gremlin.process.traversal.step.map;
 
-import org.apache.tinkerpop.gremlin.process.traversal.P;
 import org.apache.tinkerpop.gremlin.process.traversal.Traversal;
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
 import org.apache.tinkerpop.gremlin.process.traversal.step.StepTest;
 import org.junit.Test;
 
-import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThrows;
-import static org.junit.Assert.assertTrue;
 
 public class CombineStepTest extends StepTest {
     @Override
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ConjoinStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ConjoinStepTest.java
index ea7ab91bd5..300817de4d 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ConjoinStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ConjoinStepTest.java
@@ -23,16 +23,14 @@ import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
 import org.apache.tinkerpop.gremlin.process.traversal.step.StepTest;
 import org.junit.Test;
 
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 public class ConjoinStepTest extends StepTest {
     @Override
@@ -42,6 +40,7 @@ public class ConjoinStepTest extends StepTest {
     public void testReturnTypes() {
         try {
             __.__(Collections.emptyList()).conjoin(null).next();
+            fail();
         } catch (Exception e) {
             assertTrue(e.getMessage().contains("Input delimiter to conjoin step can't be null"));
         }
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStepTest.java
index ed20bb2571..8d8d9b35b1 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DifferenceStepTest.java
@@ -29,9 +29,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 public class DifferenceStepTest extends StepTest {
     @Override
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DisjunctStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DisjunctStepTest.java
index d4902f8900..6543c7b4cb 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DisjunctStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DisjunctStepTest.java
@@ -29,9 +29,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 public class DisjunctStepTest extends StepTest {
     @Override
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStepTest.java
index e665233ac4..82610d5ba5 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/IntersectStepTest.java
@@ -29,9 +29,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 public class IntersectStepTest extends StepTest {
     @Override
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStepTest.java
index 9d0091e71e..371e21c228 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProductStepTest.java
@@ -29,9 +29,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 public class ProductStepTest extends StepTest {
     @Override
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStepTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStepTest.java
index 4260162454..7756d01e90 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStepTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TraversalMergeStepTest.java
@@ -18,7 +18,6 @@
  */
 package org.apache.tinkerpop.gremlin.process.traversal.step.map;
 
-import org.apache.tinkerpop.gremlin.process.traversal.P;
 import org.apache.tinkerpop.gremlin.process.traversal.Traversal;
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
 import org.apache.tinkerpop.gremlin.process.traversal.step.StepTest;
@@ -30,9 +29,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
 
 public class TraversalMergeStepTest extends StepTest {
     @Override
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
index 070644c89d..5be5f7d6fa 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
@@ -344,6 +344,14 @@ namespace Gremlin.Net.Process.Traversal
             return new GraphTraversal<object, object>().Coin(probability);            
         }
 
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the combine step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Combine(object combineObject)
+        {
+            return new GraphTraversal<object, object>().Combine(combineObject);
+        }
+
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the concat step to that traversal.
         /// </summary>
@@ -363,19 +371,19 @@ namespace Gremlin.Net.Process.Traversal
         }
 
         /// <summary>
-        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the constant step to that traversal.
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the conjoin step to that traversal.
         /// </summary>
-        public static GraphTraversal<object, E2> Constant<E2>(E2 a)
+        public static GraphTraversal<object, object> Conjoin(string delimiter)
         {
-            return new GraphTraversal<object, E2>().Constant(a);            
+            return new GraphTraversal<object, object>().Conjoin(delimiter);
         }
 
         /// <summary>
-        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the count step to that traversal.
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the constant step to that traversal.
         /// </summary>
-        public static GraphTraversal<object, long> Count()
+        public static GraphTraversal<object, E2> Constant<E2>(E2 a)
         {
-            return new GraphTraversal<object, long>().Count();            
+            return new GraphTraversal<object, E2>().Constant(a);            
         }
 
         /// <summary>
@@ -438,6 +446,22 @@ namespace Gremlin.Net.Process.Traversal
                 : new GraphTraversal<object, object>().Dedup(dedupLabels);            
         }
 
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the difference step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Difference(object differenceObject)
+        {
+            return new GraphTraversal<object, object>().Difference(differenceObject);
+        }
+
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the disjunct step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Disjunct(object disjunctObject)
+        {
+            return new GraphTraversal<object, object>().Disjunct(disjunctObject);
+        }
+
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the drop step to that traversal.
         /// </summary>
@@ -798,6 +822,14 @@ namespace Gremlin.Net.Process.Traversal
                 : new GraphTraversal<object, object>().Inject(injections);            
         }
 
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the intersect step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Intersect(object intersectObject)
+        {
+            return new GraphTraversal<object, object>().Intersect(intersectObject);
+        }
+
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the is step to that traversal.
         /// </summary>
@@ -952,6 +984,14 @@ namespace Gremlin.Net.Process.Traversal
             return new GraphTraversal<object, E2>().Mean<E2>(scope);            
         }
 
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the merge step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Merge(object mergeObject)
+        {
+            return new GraphTraversal<object, object>().Merge(mergeObject);
+        }
+
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the mergeE step to that traversal.
         /// </summary>
@@ -1102,6 +1142,14 @@ namespace Gremlin.Net.Process.Traversal
             return new GraphTraversal<object, Path>().Path();            
         }
 
+        /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the product step to that traversal.
+        /// </summary>
+        public static GraphTraversal<object, object> Product(object productObject)
+        {
+            return new GraphTraversal<object, object>().Product(productObject);
+        }
+
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the project step to that traversal.
         /// </summary>
@@ -1197,9 +1245,9 @@ namespace Gremlin.Net.Process.Traversal
         /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the reverse step to that traversal.
         /// </summary>
-        public static GraphTraversal<object, string?> Reverse()
+        public static GraphTraversal<object, object> Reverse()
         {
-            return new GraphTraversal<object, string?>().Reverse();
+            return new GraphTraversal<object, object>().Reverse();
         }
 
         /// <summary>
diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Combine.feature b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Combine.feature
index 607f50ae1b..eaf53d7353 100644
--- a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Combine.feature
+++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/map/Combine.feature
@@ -28,7 +28,7 @@ Feature: Step - combine()
     When iterated to list
     Then the traversal will raise an error with message containing text of "Incoming traverser for combine step can't be null"
 
-  @GraphComputerVerificationInjectionNotSupported
+  @GraphComputerVerificationMidVNotSupported
   Scenario: g_V_valuesXnameX_combineXV_foldX
     Given the modern graph
     And the traversal of
@@ -75,7 +75,7 @@ Feature: Step - combine()
     When iterated to list
     Then the traversal will raise an error with message containing text of "Argument provided for combine step can't be null"
 
-  @GraphComputerVerificationInjectionNotSupported
+  @GraphComputerVerificationMidVNotSupported
   Scenario: g_V_valuesXnonexistantX_fold_combineXV_valuesXnameX_foldX
     Given the modern graph
     And the traversal of
@@ -87,7 +87,7 @@ Feature: Step - combine()
       | result |
       | l[marko,vadas,lop,josh,ripple,peter] |
 
-  @GraphComputerVerificationInjectionNotSupported
+  @GraphComputerVerificationMidVNotSupported
   Scenario: g_V_valuesXnameX_fold_combineXV_valuesXnonexistantX_foldX
     Given the modern graph
     And the traversal of
@@ -99,7 +99,7 @@ Feature: Step - combine()
       | result |
       | l[marko,vadas,lop,josh,ripple,peter] |
 
-  @GraphComputerVerificationInjectionNotSupported
+  @GraphComputerVerificationMidVNotSupported
   Scenario: g_V_valuesXageX_order_byXdescX_fold_combineXV_valuesXageX_order_byXdescX_foldX
     Given the modern graph
     And the traversal of