You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by va...@apache.org on 2022/09/26 21:08:14 UTC
[tinkerpop] branch master updated: TINKERPOP-2798 Mid-traversal E() (#1808)
This is an automated email from the ASF dual-hosted git repository.
valentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new 09896f9e59 TINKERPOP-2798 Mid-traversal E() (#1808)
09896f9e59 is described below
commit 09896f9e5976d97d68c7e7b53f79b528a1be0c08
Author: Valentyn Kahamlyk <vk...@users.noreply.github.com>
AuthorDate: Mon Sep 26 14:08:07 2022 -0700
TINKERPOP-2798 Mid-traversal E() (#1808)
---
CHANGELOG.asciidoc | 1 +
docs/src/dev/future/index.asciidoc | 2 +-
docs/src/reference/the-traversal.asciidoc | 6 +-
.../grammar/DefaultGremlinBaseVisitor.java | 4 +
.../language/grammar/TraversalMethodVisitor.java | 12 +
.../traversal/dsl/graph/GraphTraversal.java | 15 +
.../gremlin/process/traversal/dsl/graph/__.java | 7 +
.../grammar/TraversalMethodVisitorTest.java | 21 +
.../src/Gremlin.Net/CompatibilitySuppressions.xml | 147 ++++
.../Driver/Remote/DriverRemoteConnection.cs | 4 +-
.../Driver/Remote/DriverRemoteTraversal.cs | 2 +-
.../Process/Remote/IRemoteConnection.cs | 2 +-
.../Gremlin.Net/Process/Remote/RemoteStrategy.cs | 6 +-
.../Process/Traversal/DefaultTraversal.cs | 20 +-
.../Process/Traversal/GraphTraversal.cs | 828 +++++++++++----------
.../Process/Traversal/GraphTraversalSource.cs | 31 +-
.../Gremlin.Net/Process/Traversal/ITraversal.cs | 14 +-
.../Process/Traversal/ITraversalStrategy.cs | 4 +-
.../Strategy/AbstractTraversalStrategy.cs | 4 +-
.../src/Gremlin.Net/Process/Traversal/__.cs | 10 +
.../Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs | 6 +
.../Process/Traversal/TestTraversalStrategy.cs | 4 +-
.../Traversal/Translator/GroovyTranslatorTests.cs | 1 +
gremlin-go/driver/anonymousTraversal.go | 7 +
gremlin-go/driver/cucumber/gremlin.go | 6 +
gremlin-go/driver/graphTraversal.go | 6 +
.../lib/process/graph-traversal.js | 11 +
.../gremlin-javascript/test/cucumber/gremlin.js | 6 +
gremlin-language/src/main/antlr4/Gremlin.g4 | 5 +
.../gremlin_python/process/graph_traversal.py | 12 +
.../main/python/tests/process/test_translator.py | 6 +
.../GraphBinaryRemoteGraphComputerProvider.java | 4 +
.../GraphSONRemoteGraphComputerProvider.java | 4 +
gremlin-test/features/map/Edge.feature | 99 +++
.../process/traversal/step/map/EdgeTest.java | 159 ++++
.../spark/SparkGraphFeatureIntegrateTest.java | 2 +-
.../gremlin/tinkergraph/TinkerGraphWorld.java | 1 +
37 files changed, 1024 insertions(+), 455 deletions(-)
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 8a734b04b5..575483d9be 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -29,6 +29,7 @@ This release also includes changes from <<release-3-6-XXX, 3.6.XXX>>.
* Changed `Gremlin.version()` to read from the more specificly named `tinkerpop-version` attribute.
* Added warning on vertex property cardinality mismatch when reading GraphML.
* Bumped to `ws` 8.x for `gremlin-javascript`.
+* Added support for mid-traversal `E()`-steps to Gremlin core and GLV's.
[[release-3-6-2]]
=== TinkerPop 3.6.2 (Release Date: NOT OFFICIALLY RELEASED YET)
diff --git a/docs/src/dev/future/index.asciidoc b/docs/src/dev/future/index.asciidoc
index 76a4c5d208..4808779f82 100644
--- a/docs/src/dev/future/index.asciidoc
+++ b/docs/src/dev/future/index.asciidoc
@@ -49,7 +49,7 @@ line of 22H2.
* Add support for traversals as parameters for `V()`, `is()`, and `has()` (includes `Traversal` arguments to `P`)
* Geospatial support for TinkerPop (link:++https://lists.apache.org/list?dev@tinkerpop.apache.org:2021-7:DISCUSS%20geo-spatial++[DISCUSS Thread])
-* Add mid-traversal `E()` support
+* Add mid-traversal `E()` support (link:https://issues.apache.org/jira/browse/TINKERPOP-2798[TINKERPOP-2798])
* Allow properties on elements (as opposed to just references) for remote traversals
* Add subgraph/tree structure in all GLVs
* List functions (`concat()`/etc.)
diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index 29e95bc0f6..3d14cc7cd2 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -1236,16 +1236,18 @@ g.V()
[[e-step]]
=== E Step
-The `E()`-step is meant to read edges from the graph and is usually used to start a `GraphTraversal`. Unlike the related
-<<v-step,V()>> it cannot be used mid-traversal.
+The `E()`-step is meant to read edges from the graph and is usually used to start a `GraphTraversal`, but can also
+be used mid-traversal.
[gremlin-groovy,modern]
----
g.E(11) <1>
g.E().hasLabel('knows').has('weight', gt(0.75))
+g.inject(1).coalesce(E().hasLabel("knows"), addE("knows").from(V().has("name","josh")).to(V().has("name","vadas"))) <2>
----
<1> Find the edge by its unique identifier (i.e. `T.id`) - not all graphs will use a numeric value for their identifier.
+<2> Get edges with label `knows`, if there is none then add new one between `josh` and `vadas`.
*Additional References*
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/DefaultGremlinBaseVisitor.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/DefaultGremlinBaseVisitor.java
index 39dac7efa5..4531861838 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/DefaultGremlinBaseVisitor.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/DefaultGremlinBaseVisitor.java
@@ -164,6 +164,10 @@ public class DefaultGremlinBaseVisitor<T> extends AbstractParseTreeVisitor<T> im
* {@inheritDoc}
*/
@Override public T visitTraversalMethod_V(final GremlinParser.TraversalMethod_VContext ctx) { notImplemented(ctx); return null; }
+ /**
+ * {@inheritDoc}
+ */
+ @Override public T visitTraversalMethod_E(final GremlinParser.TraversalMethod_EContext ctx) { notImplemented(ctx); return null; }
/**
* {@inheritDoc}
*/
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitor.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitor.java
index 111732cd07..6c2a0ca21e 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitor.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitor.java
@@ -73,6 +73,18 @@ public class TraversalMethodVisitor extends TraversalRootVisitor<GraphTraversal>
}
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GraphTraversal visitTraversalMethod_E(final GremlinParser.TraversalMethod_EContext ctx) {
+ if (ctx.genericLiteralList().getChildCount() != 0) {
+ return this.graphTraversal.E(GenericLiteralVisitor.getGenericLiteralList(ctx.genericLiteralList()));
+ } else {
+ return this.graphTraversal.E();
+ }
+ }
+
/**
* {@inheritDoc}
*/
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 a906bc2119..6956b21bda 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
@@ -331,6 +331,21 @@ public interface GraphTraversal<S, E> extends Traversal<S, E> {
return this.asAdmin().addStep(new GraphStep<>(this.asAdmin(), Vertex.class, false, ids));
}
+ /**
+ * A {@code E} step is usually used to start a traversal but it may also be used mid-traversal.
+ *
+ * @param edgeIdsOrElements edges to inject into the traversal
+ * @return the traversal with an appended {@link GraphStep}
+ * @see <a href="http://tinkerpop.apache.org/docs/${project.version}/reference/#e-step" target="_blank">Reference Documentation - E Step</a>
+ * @since 3.7.0
+ */
+ public default GraphTraversal<S, Edge> E(final Object... edgeIdsOrElements) {
+ // a single null is [null]
+ final Object[] ids = null == edgeIdsOrElements ? new Object[] { null } : edgeIdsOrElements;
+ this.asAdmin().getBytecode().addStep(Symbols.E, ids);
+ return this.asAdmin().addStep(new GraphStep<>(this.asAdmin(), Edge.class, false, ids));
+ }
+
/**
* Map the {@link Vertex} to its adjacent vertices given a direction and edge labels.
*
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/__.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/__.java
index 6274b45503..e0d5136038 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/__.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/__.java
@@ -129,6 +129,13 @@ public class __ {
return __.<A>start().V(vertexIdsOrElements);
}
+ /**
+ * @see GraphTraversal#E(Object...)
+ */
+ public static <A> GraphTraversal<A, Edge> E(final Object... edgeIdsOrElements) {
+ return __.<A>start().E(edgeIdsOrElements);
+ }
+
/**
* @see GraphTraversal#to(Direction, String...)
*/
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
index be1af469bb..d9a4fce879 100644
--- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/grammar/TraversalMethodVisitorTest.java
@@ -1124,4 +1124,25 @@ public class TraversalMethodVisitorTest {
compare(g.V().with("blah", "bleh"),
eval("g.V().with('blah', 'bleh')"));
}
+
+ @Test
+ public void testTraversalMethod_midTraversal_E() throws Exception {
+ compare(g.inject(1).E(), eval("g.inject(1).E()"));
+ }
+
+ @Test
+ public void testTraversalMethod_midTraversal_E_multipleArgs() throws Exception {
+ compare(g.inject(1).E(2,null), eval("g.inject(1).E(2,null)"));
+ }
+
+ @Test
+ public void testTraversalMethod_midTraversal_E_spawning() throws Exception {
+ compare(g.V().coalesce(E(),addE("person")), eval("g.V().coalesce(__.E(),__.addE('person'))"));
+ }
+
+ @Test
+ public void testTraversalMethod_midTraversal_E_multipleArgs_spawning() throws Exception {
+ compare(g.V().coalesce(E(1,2),addE("person")),
+ eval("g.V().coalesce(__.E(1,2),__.addE('person'))"));
+ }
}
diff --git a/gremlin-dotnet/src/Gremlin.Net/CompatibilitySuppressions.xml b/gremlin-dotnet/src/Gremlin.Net/CompatibilitySuppressions.xml
index 5a951a6958..25d1eea651 100644
--- a/gremlin-dotnet/src/Gremlin.Net/CompatibilitySuppressions.xml
+++ b/gremlin-dotnet/src/Gremlin.Net/CompatibilitySuppressions.xml
@@ -16,4 +16,151 @@
<Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:Gremlin.Net.Process.Traversal.DefaultTraversal`2</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:Gremlin.Net.Process.Traversal.GraphTraversal`2</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:Gremlin.Net.Process.Traversal.GraphTraversalSource`2</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>Gremlin.Net.Process.Traversal.GraphTraversalSource.Inject`1(`1[])</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.GraphTraversalSource.Io`1(System.String)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.ITraversalStrategy.Apply`2(Gremlin.Net.Process.Traversal.ITraversal`2)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0001</DiagnosticId>
+ <Target>T:Gremlin.Net.Process.Traversal.ITraversal`2</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.Strategy.AbstractTraversalStrategy.Apply`2(Gremlin.Net.Process.Traversal.ITraversal`2)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.GraphTraversalSource.Inject``1(``0[])</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.GraphTraversalSource.Io``1(System.String)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.ITraversalStrategy.Apply``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.ITraversalStrategy.ApplyAsync``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0006</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.ITraversalStrategy.Apply``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0006</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.ITraversalStrategy.ApplyAsync``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.Strategy.AbstractTraversalStrategy.Apply``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Traversal.Strategy.AbstractTraversalStrategy.ApplyAsync``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Remote.IRemoteConnection.SubmitAsync``2(Gremlin.Net.Process.Traversal.Bytecode)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0006</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Remote.IRemoteConnection.SubmitAsync``2(Gremlin.Net.Process.Traversal.Bytecode)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Remote.RemoteStrategy.Apply``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Process.Remote.RemoteStrategy.ApplyAsync``2(Gremlin.Net.Process.Traversal.ITraversal{``0,``1})</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
+ <Suppression>
+ <DiagnosticId>CP0002</DiagnosticId>
+ <Target>M:Gremlin.Net.Driver.Remote.DriverRemoteConnection.SubmitAsync``2(Gremlin.Net.Process.Traversal.Bytecode)</Target>
+ <Left>lib/netstandard2.0/Gremlin.Net.dll</Left>
+ <Right>lib/netstandard2.0/Gremlin.Net.dll</Right>
+ <IsBaselineSuppression>true</IsBaselineSuppression>
+ </Suppression>
</Suppressions>
\ No newline at end of file
diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteConnection.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteConnection.cs
index 2f32f778ba..c1aad3ad74 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteConnection.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteConnection.cs
@@ -107,11 +107,11 @@ namespace Gremlin.Net.Driver.Remote
/// </summary>
/// <param name="bytecode">The <see cref="Bytecode" /> to submit.</param>
/// <returns>A <see cref="ITraversal" /> allowing to access the results and side-effects.</returns>
- public async Task<ITraversal<S, E>> SubmitAsync<S, E>(Bytecode bytecode)
+ public async Task<ITraversal<TStart, TEnd>> SubmitAsync<TStart, TEnd>(Bytecode bytecode)
{
var requestId = Guid.NewGuid();
var resultSet = await SubmitBytecodeAsync(requestId, bytecode).ConfigureAwait(false);
- return new DriverRemoteTraversal<S, E>(_client, requestId, resultSet);
+ return new DriverRemoteTraversal<TStart, TEnd>(_client, requestId, resultSet);
}
private async Task<IEnumerable<Traverser>> SubmitBytecodeAsync(Guid requestid, Bytecode bytecode)
diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversal.cs
index cf506465b0..6e610181ea 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversal.cs
@@ -27,7 +27,7 @@ using Gremlin.Net.Process.Traversal;
namespace Gremlin.Net.Driver.Remote
{
- internal class DriverRemoteTraversal<S, E> : DefaultTraversal<S, E>
+ internal class DriverRemoteTraversal<TStart, TEnd> : DefaultTraversal<TStart, TEnd>
{
public DriverRemoteTraversal(IGremlinClient gremlinClient, Guid requestId,
IEnumerable<Traverser> traversers)
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs
index d2514618ab..029f59fbbd 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs
@@ -37,7 +37,7 @@ namespace Gremlin.Net.Process.Remote
/// </summary>
/// <param name="bytecode">The <see cref="Bytecode" /> to send.</param>
/// <returns>The <see cref="ITraversal" /> with the results and optional side-effects.</returns>
- Task<ITraversal<S, E>> SubmitAsync<S, E>(Bytecode bytecode);
+ Task<ITraversal<TStart, TEnd>> SubmitAsync<TStart, TEnd>(Bytecode bytecode);
/// <summary>
/// Creates a <see cref="RemoteTransaction" /> in the context of a <see cref="GraphTraversalSource" /> designed to work with
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs
index d361ac4910..5bffb1c44b 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs
@@ -44,16 +44,16 @@ namespace Gremlin.Net.Process.Remote
}
/// <inheritdoc />
- public void Apply<S, E>(ITraversal<S, E> traversal)
+ public void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
ApplyAsync(traversal).WaitUnwrap();
}
/// <inheritdoc />
- public async Task ApplyAsync<S, E>(ITraversal<S, E> traversal)
+ public async Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
if (traversal.Traversers != null) return;
- var remoteTraversal = await _remoteConnection.SubmitAsync<S, E>(traversal.Bytecode).ConfigureAwait(false);
+ var remoteTraversal = await _remoteConnection.SubmitAsync<TStart, TEnd>(traversal.Bytecode).ConfigureAwait(false);
traversal.Traversers = remoteTraversal.Traversers;
}
}
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/DefaultTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/DefaultTraversal.cs
index 38e031c14c..0d2bd8c4a0 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/DefaultTraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/DefaultTraversal.cs
@@ -32,7 +32,7 @@ namespace Gremlin.Net.Process.Traversal
/// <summary>
/// A traversal represents a directed walk over a graph.
/// </summary>
- public abstract class DefaultTraversal<S, E> : ITraversal<S, E>
+ public abstract class DefaultTraversal<TStart, TEnd> : ITraversal<TStart, TEnd>
{
private IEnumerator<Traverser> _traverserEnumerator;
@@ -108,7 +108,7 @@ namespace Gremlin.Net.Process.Traversal
}
/// <inheritdoc />
- public E Current => GetCurrent<E>();
+ public TEnd Current => GetCurrent<TEnd>();
object IEnumerator.Current => GetCurrent();
@@ -195,7 +195,7 @@ namespace Gremlin.Net.Process.Traversal
/// Gets the next result from the traversal.
/// </summary>
/// <returns>The result.</returns>
- public E Next()
+ public TEnd Next()
{
MoveNext();
return Current;
@@ -206,7 +206,7 @@ namespace Gremlin.Net.Process.Traversal
/// </summary>
/// <param name="amount">The number of results to get.</param>
/// <returns>The n-results.</returns>
- public IEnumerable<E> Next(int amount)
+ public IEnumerable<TEnd> Next(int amount)
{
for (var i = 0; i < amount; i++)
yield return Next();
@@ -216,7 +216,7 @@ namespace Gremlin.Net.Process.Traversal
/// Iterates all <see cref="Traverser" /> instances in the traversal.
/// </summary>
/// <returns>The fully drained traversal.</returns>
- public ITraversal<S, E> Iterate()
+ public ITraversal<TStart, TEnd> Iterate()
{
Bytecode.AddStep("none");
while (MoveNext())
@@ -239,9 +239,9 @@ namespace Gremlin.Net.Process.Traversal
/// Puts all the results into a <see cref="List{T}" />.
/// </summary>
/// <returns>The results in a list.</returns>
- public IList<E> ToList()
+ public IList<TEnd> ToList()
{
- var objs = new List<E>();
+ var objs = new List<TEnd>();
while (MoveNext())
objs.Add(Current);
return objs;
@@ -251,9 +251,9 @@ namespace Gremlin.Net.Process.Traversal
/// Puts all the results into a <see cref="HashSet{T}" />.
/// </summary>
/// <returns>The results in a set.</returns>
- public ISet<E> ToSet()
+ public ISet<TEnd> ToSet()
{
- var objs = new HashSet<E>();
+ var objs = new HashSet<TEnd>();
while (MoveNext())
objs.Add(Current);
return objs;
@@ -265,7 +265,7 @@ namespace Gremlin.Net.Process.Traversal
/// <typeparam name="TReturn">The return type of the <paramref name="callback" />.</typeparam>
/// <param name="callback">The function to execute on the current traversal.</param>
/// <returns>The result of the executed <paramref name="callback" />.</returns>
- public async Task<TReturn> Promise<TReturn>(Func<ITraversal<S, E>, TReturn> callback)
+ public async Task<TReturn> Promise<TReturn>(Func<ITraversal<TStart, TEnd>, TReturn> callback)
{
await ApplyStrategiesAsync().ConfigureAwait(false);
return callback(this);
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
index c6cf798f9a..62ba569137 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
@@ -31,7 +31,7 @@ namespace Gremlin.Net.Process.Traversal
/// <summary>
/// Graph traversals are the primary way in which graphs are processed.
/// </summary>
- public class GraphTraversal<S, E> : DefaultTraversal<S, E>
+ public class GraphTraversal<TStart, TEnd> : DefaultTraversal<TStart, TEnd>
{
/// <summary>
/// Initializes a new instance of the <see cref="GraphTraversal{SType, EType}" /> class.
@@ -64,21 +64,21 @@ namespace Gremlin.Net.Process.Traversal
IsAnonymous = anonymous;
}
- private static GraphTraversal<S2, E2> Wrap<S2, E2>(GraphTraversal<S, E> traversal)
+ private static GraphTraversal<TNewStart, TNewEnd> Wrap<TNewStart, TNewEnd>(GraphTraversal<TStart, TEnd> traversal)
{
- if (typeof(S2) == typeof(S) && typeof(E2) == typeof(E))
+ if (typeof(TNewStart) == typeof(TStart) && typeof(TNewEnd) == typeof(TEnd))
{
- return traversal as GraphTraversal<S2, E2>;
+ return traversal as GraphTraversal<TNewStart, TNewEnd>;
}
// New wrapper
- return new GraphTraversal<S2, E2>(traversal.TraversalStrategies, traversal.Bytecode, traversal.IsAnonymous);
+ return new GraphTraversal<TNewStart, TNewEnd>(traversal.TraversalStrategies, traversal.Bytecode, traversal.IsAnonymous);
}
/// <summary>
/// Adds the V step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> V (params object[] vertexIdsOrElements)
+ public GraphTraversal<TStart, Vertex> V (params object[] vertexIdsOrElements)
{
if (vertexIdsOrElements == null)
{
@@ -90,89 +90,107 @@ namespace Gremlin.Net.Process.Traversal
args.AddRange(vertexIdsOrElements);
Bytecode.AddStep("V", args.ToArray());
}
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
+ }
+
+ /// <summary>
+ /// Adds the E step to this <see cref="GraphTraversal{SType, EType}" />.
+ /// </summary>
+ public GraphTraversal<TStart, Edge> E (params object[] edgeIdsOrElements)
+ {
+ if (edgeIdsOrElements == null)
+ {
+ Bytecode.AddStep("E", new object[] { null });
+ }
+ else
+ {
+ var args = new List<object>(edgeIdsOrElements.Length);
+ args.AddRange(edgeIdsOrElements);
+ Bytecode.AddStep("E", args.ToArray());
+ }
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the addE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> AddE (string edgeLabel)
+ public GraphTraversal<TStart, Edge> AddE (string edgeLabel)
{
Bytecode.AddStep("addE", edgeLabel);
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the addE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> AddE (ITraversal edgeLabelTraversal)
+ public GraphTraversal<TStart, Edge> AddE (ITraversal edgeLabelTraversal)
{
Bytecode.AddStep("addE", edgeLabelTraversal);
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the addV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> AddV ()
+ public GraphTraversal<TStart, Vertex> AddV ()
{
Bytecode.AddStep("addV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the addV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> AddV (string vertexLabel)
+ public GraphTraversal<TStart, Vertex> AddV (string vertexLabel)
{
Bytecode.AddStep("addV", vertexLabel);
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the addV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> AddV (ITraversal vertexLabelTraversal)
+ public GraphTraversal<TStart, Vertex> AddV (ITraversal vertexLabelTraversal)
{
Bytecode.AddStep("addV", vertexLabelTraversal);
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the aggregate step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Aggregate (Scope scope, string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Aggregate (Scope scope, string sideEffectKey)
{
Bytecode.AddStep("aggregate", scope, sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the aggregate step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Aggregate (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Aggregate (string sideEffectKey)
{
Bytecode.AddStep("aggregate", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the and step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> And (params ITraversal[] andTraversals)
+ public GraphTraversal<TStart, TEnd> And (params ITraversal[] andTraversals)
{
if (andTraversals == null) throw new ArgumentNullException(nameof(andTraversals));
var args = new List<object>(andTraversals.Length);
args.AddRange(andTraversals);
Bytecode.AddStep("and", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the as step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> As (string stepLabel, params string[] stepLabels)
+ public GraphTraversal<TStart, TEnd> As (string stepLabel, params string[] stepLabels)
{
if (stepLabel == null) throw new ArgumentNullException(nameof(stepLabel));
if (stepLabels == null) throw new ArgumentNullException(nameof(stepLabels));
@@ -180,219 +198,219 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(1 + stepLabels.Length) {stepLabel};
args.AddRange(stepLabels);
Bytecode.AddStep("as", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the barrier step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Barrier ()
+ public GraphTraversal<TStart, TEnd> Barrier ()
{
Bytecode.AddStep("barrier");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the barrier step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Barrier (IConsumer barrierConsumer)
+ public GraphTraversal<TStart, TEnd> Barrier (IConsumer barrierConsumer)
{
Bytecode.AddStep("barrier", barrierConsumer);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the barrier step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Barrier (int maxBarrierSize)
+ public GraphTraversal<TStart, TEnd> Barrier (int maxBarrierSize)
{
Bytecode.AddStep("barrier", maxBarrierSize);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the both step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> Both (params string[] edgeLabels)
+ public GraphTraversal<TStart, Vertex> Both (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("both", args.ToArray());
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the bothE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> BothE (params string[] edgeLabels)
+ public GraphTraversal<TStart, Edge> BothE (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("bothE", args.ToArray());
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the bothV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> BothV ()
+ public GraphTraversal<TStart, Vertex> BothV ()
{
Bytecode.AddStep("bothV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the branch step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Branch<E2> (IFunction function)
+ public GraphTraversal<TStart, TNewEnd> Branch<TNewEnd> (IFunction function)
{
Bytecode.AddStep("branch", function);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the branch step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Branch<E2> (ITraversal branchTraversal)
+ public GraphTraversal<TStart, TNewEnd> Branch<TNewEnd> (ITraversal branchTraversal)
{
Bytecode.AddStep("branch", branchTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By ()
+ public GraphTraversal<TStart, TEnd> By ()
{
Bytecode.AddStep("by");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (IComparator comparator)
+ public GraphTraversal<TStart, TEnd> By (IComparator comparator)
{
Bytecode.AddStep("by", comparator);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (IFunction function)
+ public GraphTraversal<TStart, TEnd> By (IFunction function)
{
Bytecode.AddStep("by", function);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (IFunction function, IComparator comparator)
+ public GraphTraversal<TStart, TEnd> By (IFunction function, IComparator comparator)
{
Bytecode.AddStep("by", function, comparator);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (Order order)
+ public GraphTraversal<TStart, TEnd> By (Order order)
{
Bytecode.AddStep("by", order);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (string key)
+ public GraphTraversal<TStart, TEnd> By (string key)
{
Bytecode.AddStep("by", key);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (string key, IComparator comparator)
+ public GraphTraversal<TStart, TEnd> By (string key, IComparator comparator)
{
Bytecode.AddStep("by", key, comparator);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (T token)
+ public GraphTraversal<TStart, TEnd> By (T token)
{
Bytecode.AddStep("by", token);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (ITraversal traversal)
+ public GraphTraversal<TStart, TEnd> By (ITraversal traversal)
{
Bytecode.AddStep("by", traversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the by step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> By (ITraversal traversal, IComparator comparator)
+ public GraphTraversal<TStart, TEnd> By (ITraversal traversal, IComparator comparator)
{
Bytecode.AddStep("by", traversal, comparator);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the call step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Call<E2> (string service)
+ public GraphTraversal<TStart, TNewEnd> Call<TNewEnd> (string service)
{
Bytecode.AddStep("call", service);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the call step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Call<E2> (string service, ITraversal t)
+ public GraphTraversal<TStart, TNewEnd> Call<TNewEnd> (string service, ITraversal t)
{
Bytecode.AddStep("call", service, t);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the call step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Call<E2> (string service, IDictionary<object,object> m)
+ public GraphTraversal<TStart, TNewEnd> Call<TNewEnd> (string service, IDictionary<object,object> m)
{
Bytecode.AddStep("call", service, m);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the call step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Call<E2> (string service, IDictionary<object,object> m, ITraversal t)
+ public GraphTraversal<TStart, TNewEnd> Call<TNewEnd> (string service, IDictionary<object,object> m, ITraversal t)
{
Bytecode.AddStep("call", service, m, t);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the cap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Cap<E2> (string sideEffectKey, params string[] sideEffectKeys)
+ public GraphTraversal<TStart, TNewEnd> Cap<TNewEnd> (string sideEffectKey, params string[] sideEffectKeys)
{
if (sideEffectKey == null) throw new ArgumentNullException(nameof(sideEffectKey));
if (sideEffectKeys == null) throw new ArgumentNullException(nameof(sideEffectKeys));
@@ -400,443 +418,443 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(1 + sideEffectKeys.Length) { sideEffectKey };
args.AddRange(sideEffectKeys);
Bytecode.AddStep("cap", args.ToArray());
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (IFunction choiceFunction)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (IFunction choiceFunction)
{
Bytecode.AddStep("choose", choiceFunction);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (IPredicate choosePredicate, ITraversal trueChoice)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (IPredicate choosePredicate, ITraversal trueChoice)
{
Bytecode.AddStep("choose", choosePredicate, trueChoice);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (IPredicate choosePredicate, ITraversal trueChoice, ITraversal falseChoice)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (IPredicate choosePredicate, ITraversal trueChoice, ITraversal falseChoice)
{
Bytecode.AddStep("choose", choosePredicate, trueChoice, falseChoice);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (ITraversal choiceTraversal)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (ITraversal choiceTraversal)
{
Bytecode.AddStep("choose", choiceTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (ITraversal traversalPredicate, ITraversal trueChoice)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (ITraversal traversalPredicate, ITraversal trueChoice)
{
Bytecode.AddStep("choose", traversalPredicate, trueChoice);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the choose step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Choose<E2> (ITraversal traversalPredicate, ITraversal trueChoice, ITraversal falseChoice)
+ public GraphTraversal<TStart, TNewEnd> Choose<TNewEnd> (ITraversal traversalPredicate, ITraversal trueChoice, ITraversal falseChoice)
{
Bytecode.AddStep("choose", traversalPredicate, trueChoice, falseChoice);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the coalesce step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Coalesce<E2> (params ITraversal[] coalesceTraversals)
+ public GraphTraversal<TStart, TNewEnd> Coalesce<TNewEnd> (params ITraversal[] coalesceTraversals)
{
if (coalesceTraversals == null) throw new ArgumentNullException(nameof(coalesceTraversals));
var args = new List<object>(coalesceTraversals.Length);
args.AddRange(coalesceTraversals);
Bytecode.AddStep("coalesce", args.ToArray());
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the coin step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Coin (double probability)
+ public GraphTraversal<TStart, TEnd> Coin (double probability)
{
Bytecode.AddStep("coin", probability);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the connectedComponent step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> ConnectedComponent ()
+ public GraphTraversal<TStart, TEnd> ConnectedComponent ()
{
Bytecode.AddStep("connectedComponent");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the constant step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Constant<E2> (E2 e)
+ public GraphTraversal<TStart, TNewEnd> Constant<TNewEnd> (TNewEnd e)
{
Bytecode.AddStep("constant", e);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the count step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, long> Count ()
+ public GraphTraversal<TStart, long> Count ()
{
Bytecode.AddStep("count");
- return Wrap<S, long>(this);
+ return Wrap<TStart, long>(this);
}
/// <summary>
/// Adds the count step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, long> Count (Scope scope)
+ public GraphTraversal<TStart, long> Count (Scope scope)
{
Bytecode.AddStep("count", scope);
- return Wrap<S, long>(this);
+ return Wrap<TStart, long>(this);
}
/// <summary>
/// Adds the cyclicPath step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> CyclicPath ()
+ public GraphTraversal<TStart, TEnd> CyclicPath ()
{
Bytecode.AddStep("cyclicPath");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the dedup step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Dedup (Scope scope, params string[] dedupLabels)
+ public GraphTraversal<TStart, TEnd> Dedup (Scope scope, params string[] dedupLabels)
{
if (dedupLabels == null) throw new ArgumentNullException(nameof(dedupLabels));
var args = new List<object>(1 + dedupLabels.Length) { scope };
args.AddRange(dedupLabels);
Bytecode.AddStep("dedup", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the dedup step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Dedup (params string[] dedupLabels)
+ public GraphTraversal<TStart, TEnd> Dedup (params string[] dedupLabels)
{
if (dedupLabels == null) throw new ArgumentNullException(nameof(dedupLabels));
var args = new List<object>(dedupLabels.Length);
args.AddRange(dedupLabels);
Bytecode.AddStep("dedup", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the drop step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Drop ()
+ public GraphTraversal<TStart, TEnd> Drop ()
{
Bytecode.AddStep("drop");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the element step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Element> Element ()
+ public GraphTraversal<TStart, Element> Element ()
{
Bytecode.AddStep("element");
- return Wrap<S, Element>(this);
+ return Wrap<TStart, Element>(this);
}
/// <summary>
/// Adds the elementMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<object, E2>> ElementMap<E2> (params string[] propertyKeys)
+ public GraphTraversal<TStart, IDictionary<object, TNewEnd>> ElementMap<TNewEnd> (params string[] propertyKeys)
{
if (propertyKeys == null) throw new ArgumentNullException(nameof(propertyKeys));
var args = new List<object>(0 + propertyKeys.Length);
args.AddRange(propertyKeys);
Bytecode.AddStep("elementMap", args.ToArray());
- return Wrap<S, IDictionary<object, E2>>(this);
+ return Wrap<TStart, IDictionary<object, TNewEnd>>(this);
}
/// <summary>
/// Adds the emit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Emit ()
+ public GraphTraversal<TStart, TEnd> Emit ()
{
Bytecode.AddStep("emit");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the emit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Emit (IPredicate emitPredicate)
+ public GraphTraversal<TStart, TEnd> Emit (IPredicate emitPredicate)
{
Bytecode.AddStep("emit", emitPredicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the emit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Emit (ITraversal emitTraversal)
+ public GraphTraversal<TStart, TEnd> Emit (ITraversal emitTraversal)
{
Bytecode.AddStep("emit", emitTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the fail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Fail ()
+ public GraphTraversal<TStart, TEnd> Fail ()
{
Bytecode.AddStep("fail");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the fail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Fail (string msg)
+ public GraphTraversal<TStart, TEnd> Fail (string msg)
{
Bytecode.AddStep("fail", msg);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the fail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Fail (string msg, IDictionary<string,object> m)
+ public GraphTraversal<TStart, TEnd> Fail (string msg, IDictionary<string,object> m)
{
Bytecode.AddStep("fail", msg, m);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the filter step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Filter (IPredicate predicate)
+ public GraphTraversal<TStart, TEnd> Filter (IPredicate predicate)
{
Bytecode.AddStep("filter", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the filter step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Filter (ITraversal filterTraversal)
+ public GraphTraversal<TStart, TEnd> Filter (ITraversal filterTraversal)
{
Bytecode.AddStep("filter", filterTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the flatMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> FlatMap<E2> (IFunction function)
+ public GraphTraversal<TStart, TNewEnd> FlatMap<TNewEnd> (IFunction function)
{
Bytecode.AddStep("flatMap", function);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the flatMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> FlatMap<E2> (ITraversal flatMapTraversal)
+ public GraphTraversal<TStart, TNewEnd> FlatMap<TNewEnd> (ITraversal flatMapTraversal)
{
Bytecode.AddStep("flatMap", flatMapTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the fold step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IList<E>> Fold ()
+ public GraphTraversal<TStart, IList<TEnd>> Fold ()
{
Bytecode.AddStep("fold");
- return Wrap<S, IList<E>>(this);
+ return Wrap<TStart, IList<TEnd>>(this);
}
/// <summary>
/// Adds the fold step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Fold<E2> (E2 seed, IBiFunction foldFunction)
+ public GraphTraversal<TStart, TNewEnd> Fold<TNewEnd> (TNewEnd seed, IBiFunction foldFunction)
{
Bytecode.AddStep("fold", seed, foldFunction);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the from step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> From (string fromStepLabel)
+ public GraphTraversal<TStart, TEnd> From (string fromStepLabel)
{
Bytecode.AddStep("from", fromStepLabel);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the from step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> From (ITraversal fromVertex)
+ public GraphTraversal<TStart, TEnd> From (ITraversal fromVertex)
{
Bytecode.AddStep("from", fromVertex);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the from step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> From (Vertex fromVertex)
+ public GraphTraversal<TStart, TEnd> From (Vertex fromVertex)
{
Bytecode.AddStep("from", fromVertex);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the group step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<K, V>> Group<K, V> ()
+ public GraphTraversal<TStart, IDictionary<K, V>> Group<K, V> ()
{
Bytecode.AddStep("group");
- return Wrap<S, IDictionary<K, V>>(this);
+ return Wrap<TStart, IDictionary<K, V>>(this);
}
/// <summary>
/// Adds the group step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Group (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Group (string sideEffectKey)
{
Bytecode.AddStep("group", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the groupCount step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<K, long>> GroupCount<K> ()
+ public GraphTraversal<TStart, IDictionary<K, long>> GroupCount<K> ()
{
Bytecode.AddStep("groupCount");
- return Wrap<S, IDictionary<K, long>>(this);
+ return Wrap<TStart, IDictionary<K, long>>(this);
}
/// <summary>
/// Adds the groupCount step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> GroupCount (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> GroupCount (string sideEffectKey)
{
Bytecode.AddStep("groupCount", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string propertyKey)
+ public GraphTraversal<TStart, TEnd> Has (string propertyKey)
{
Bytecode.AddStep("has", propertyKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string propertyKey, object value)
+ public GraphTraversal<TStart, TEnd> Has (string propertyKey, object value)
{
Bytecode.AddStep("has", propertyKey, value);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string propertyKey, P predicate)
+ public GraphTraversal<TStart, TEnd> Has (string propertyKey, P predicate)
{
Bytecode.AddStep("has", propertyKey, predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string label, string propertyKey, object value)
+ public GraphTraversal<TStart, TEnd> Has (string label, string propertyKey, object value)
{
Bytecode.AddStep("has", label, propertyKey, value);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string label, string propertyKey, P predicate)
+ public GraphTraversal<TStart, TEnd> Has (string label, string propertyKey, P predicate)
{
Bytecode.AddStep("has", label, propertyKey, predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (string propertyKey, ITraversal propertyTraversal)
+ public GraphTraversal<TStart, TEnd> Has (string propertyKey, ITraversal propertyTraversal)
{
Bytecode.AddStep("has", propertyKey, propertyTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (T accessor, object value)
+ public GraphTraversal<TStart, TEnd> Has (T accessor, object value)
{
Bytecode.AddStep("has", accessor, value);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (T accessor, P predicate)
+ public GraphTraversal<TStart, TEnd> Has (T accessor, P predicate)
{
Bytecode.AddStep("has", accessor, predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the has step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Has (T accessor, ITraversal propertyTraversal)
+ public GraphTraversal<TStart, TEnd> Has (T accessor, ITraversal propertyTraversal)
{
Bytecode.AddStep("has", accessor, propertyTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasId step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasId (object id, params object[] otherIds)
+ public GraphTraversal<TStart, TEnd> HasId (object id, params object[] otherIds)
{
List<object> args;
if (otherIds == null)
@@ -849,31 +867,31 @@ namespace Gremlin.Net.Process.Traversal
args.AddRange(otherIds);
}
Bytecode.AddStep("hasId", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasId step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasId (P predicate)
+ public GraphTraversal<TStart, TEnd> HasId (P predicate)
{
Bytecode.AddStep("hasId", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasKey step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasKey (P predicate)
+ public GraphTraversal<TStart, TEnd> HasKey (P predicate)
{
Bytecode.AddStep("hasKey", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasKey step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasKey (string label, params string[] otherLabels)
+ public GraphTraversal<TStart, TEnd> HasKey (string label, params string[] otherLabels)
{
List<object> args;
if (otherLabels == null)
@@ -886,22 +904,22 @@ namespace Gremlin.Net.Process.Traversal
args.AddRange(otherLabels);
}
Bytecode.AddStep("hasKey", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasLabel step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasLabel (P predicate)
+ public GraphTraversal<TStart, TEnd> HasLabel (P predicate)
{
Bytecode.AddStep("hasLabel", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasLabel step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasLabel (string label, params string[] otherLabels)
+ public GraphTraversal<TStart, TEnd> HasLabel (string label, params string[] otherLabels)
{
List<object> args;
if (otherLabels == null)
@@ -914,22 +932,22 @@ namespace Gremlin.Net.Process.Traversal
args.AddRange(otherLabels);
}
Bytecode.AddStep("hasLabel", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasNot step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasNot (string propertyKey)
+ public GraphTraversal<TStart, TEnd> HasNot (string propertyKey)
{
Bytecode.AddStep("hasNot", propertyKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasValue step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasValue (object value, params object[] otherValues)
+ public GraphTraversal<TStart, TEnd> HasValue (object value, params object[] otherValues)
{
List<object> args;
if (otherValues == null)
@@ -942,84 +960,84 @@ namespace Gremlin.Net.Process.Traversal
args.AddRange(otherValues);
}
Bytecode.AddStep("hasValue", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the hasValue step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> HasValue (P predicate)
+ public GraphTraversal<TStart, TEnd> HasValue (P predicate)
{
Bytecode.AddStep("hasValue", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the id step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, object> Id ()
+ public GraphTraversal<TStart, object> Id ()
{
Bytecode.AddStep("id");
- return Wrap<S, object>(this);
+ return Wrap<TStart, object>(this);
}
/// <summary>
/// Adds the identity step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Identity ()
+ public GraphTraversal<TStart, TEnd> Identity ()
{
Bytecode.AddStep("identity");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the in step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> In (params string[] edgeLabels)
+ public GraphTraversal<TStart, Vertex> In (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("in", args.ToArray());
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the inE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> InE (params string[] edgeLabels)
+ public GraphTraversal<TStart, Edge> InE (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("inE", args.ToArray());
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the inV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> InV ()
+ public GraphTraversal<TStart, Vertex> InV ()
{
Bytecode.AddStep("inV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the index step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Index<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Index<TNewEnd> ()
{
Bytecode.AddStep("index");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the inject step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Inject (params E[] injections)
+ public GraphTraversal<TStart, TEnd> Inject (params TEnd[] injections)
{
// null injections is treated as g.inject(null) meaning inject a single null traverser
if (injections == null)
@@ -1033,434 +1051,434 @@ namespace Gremlin.Net.Process.Traversal
Bytecode.AddStep("inject", args.ToArray());
}
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the is step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Is (object value)
+ public GraphTraversal<TStart, TEnd> Is (object value)
{
Bytecode.AddStep("is", value);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the is step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Is (P predicate)
+ public GraphTraversal<TStart, TEnd> Is (P predicate)
{
Bytecode.AddStep("is", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the key step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, string> Key ()
+ public GraphTraversal<TStart, string> Key ()
{
Bytecode.AddStep("key");
- return Wrap<S, string>(this);
+ return Wrap<TStart, string>(this);
}
/// <summary>
/// Adds the label step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, string> Label ()
+ public GraphTraversal<TStart, string> Label ()
{
Bytecode.AddStep("label");
- return Wrap<S, string>(this);
+ return Wrap<TStart, string>(this);
}
/// <summary>
/// Adds the limit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Limit<E2> (Scope scope, long limit)
+ public GraphTraversal<TStart, TNewEnd> Limit<TNewEnd> (Scope scope, long limit)
{
Bytecode.AddStep("limit", scope, limit);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the limit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Limit<E2> (long limit)
+ public GraphTraversal<TStart, TNewEnd> Limit<TNewEnd> (long limit)
{
Bytecode.AddStep("limit", limit);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the local step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Local<E2> (ITraversal localTraversal)
+ public GraphTraversal<TStart, TNewEnd> Local<TNewEnd> (ITraversal localTraversal)
{
Bytecode.AddStep("local", localTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the loops step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, int> Loops ()
+ public GraphTraversal<TStart, int> Loops ()
{
Bytecode.AddStep("loops");
- return Wrap<S, int>(this);
+ return Wrap<TStart, int>(this);
}
/// <summary>
/// Adds the loops step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, int> Loops (string loopName)
+ public GraphTraversal<TStart, int> Loops (string loopName)
{
Bytecode.AddStep("loops", loopName);
- return Wrap<S, int>(this);
+ return Wrap<TStart, int>(this);
}
/// <summary>
/// Adds the map step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Map<E2> (IFunction function)
+ public GraphTraversal<TStart, TNewEnd> Map<TNewEnd> (IFunction function)
{
Bytecode.AddStep("map", function);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the map step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Map<E2> (ITraversal mapTraversal)
+ public GraphTraversal<TStart, TNewEnd> Map<TNewEnd> (ITraversal mapTraversal)
{
Bytecode.AddStep("map", mapTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the match step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<string, E2>> Match<E2> (params ITraversal[] matchTraversals)
+ public GraphTraversal<TStart, IDictionary<string, TNewEnd>> Match<TNewEnd> (params ITraversal[] matchTraversals)
{
if (matchTraversals == null) throw new ArgumentNullException(nameof(matchTraversals));
var args = new List<object>(matchTraversals.Length);
args.AddRange(matchTraversals);
Bytecode.AddStep("match", args.ToArray());
- return Wrap<S, IDictionary<string, E2>>(this);
+ return Wrap<TStart, IDictionary<string, TNewEnd>>(this);
}
/// <summary>
/// Adds the math step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, double> Math (string expression)
+ public GraphTraversal<TStart, double> Math (string expression)
{
Bytecode.AddStep("math", expression);
- return Wrap<S, double>(this);
+ return Wrap<TStart, double>(this);
}
/// <summary>
/// Adds the max step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Max<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Max<TNewEnd> ()
{
Bytecode.AddStep("max");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the max step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Max<E2> (Scope scope)
+ public GraphTraversal<TStart, TNewEnd> Max<TNewEnd> (Scope scope)
{
Bytecode.AddStep("max", scope);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the mean step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Mean<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Mean<TNewEnd> ()
{
Bytecode.AddStep("mean");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the mean step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Mean<E2> (Scope scope)
+ public GraphTraversal<TStart, TNewEnd> Mean<TNewEnd> (Scope scope)
{
Bytecode.AddStep("mean", scope);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the mergeE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> MergeE ()
+ public GraphTraversal<TStart, Edge> MergeE ()
{
Bytecode.AddStep("mergeE");
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the mergeE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> MergeE (IDictionary<object,object> m)
+ public GraphTraversal<TStart, Edge> MergeE (IDictionary<object,object> m)
{
Bytecode.AddStep("mergeE", m);
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the mergeE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> MergeE (ITraversal t)
+ public GraphTraversal<TStart, Edge> MergeE (ITraversal t)
{
Bytecode.AddStep("mergeE", t);
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the mergeV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> MergeV ()
+ public GraphTraversal<TStart, Vertex> MergeV ()
{
Bytecode.AddStep("mergeV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the mergeV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> MergeV (IDictionary<object,object> m)
+ public GraphTraversal<TStart, Vertex> MergeV (IDictionary<object,object> m)
{
Bytecode.AddStep("mergeV", m);
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the mergeV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> MergeV (ITraversal t)
+ public GraphTraversal<TStart, Vertex> MergeV (ITraversal t)
{
Bytecode.AddStep("mergeV", t);
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the min step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Min<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Min<TNewEnd> ()
{
Bytecode.AddStep("min");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the min step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Min<E2> (Scope scope)
+ public GraphTraversal<TStart, TNewEnd> Min<TNewEnd> (Scope scope)
{
Bytecode.AddStep("min", scope);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the none step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> None ()
+ public GraphTraversal<TStart, TEnd> None ()
{
Bytecode.AddStep("none");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the not step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Not (ITraversal notTraversal)
+ public GraphTraversal<TStart, TEnd> Not (ITraversal notTraversal)
{
Bytecode.AddStep("not", notTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the option step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Option (object pickToken, ITraversal traversalOption)
+ public GraphTraversal<TStart, TEnd> Option (object pickToken, ITraversal traversalOption)
{
Bytecode.AddStep("option", pickToken, traversalOption);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the option step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Option (object pickToken, IDictionary<object,object> traversalOption)
+ public GraphTraversal<TStart, TEnd> Option (object pickToken, IDictionary<object,object> traversalOption)
{
Bytecode.AddStep("option", pickToken, traversalOption);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the option step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Option (ITraversal traversalOption)
+ public GraphTraversal<TStart, TEnd> Option (ITraversal traversalOption)
{
Bytecode.AddStep("option", traversalOption);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the optional step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Optional<E2> (ITraversal optionalTraversal)
+ public GraphTraversal<TStart, TNewEnd> Optional<TNewEnd> (ITraversal optionalTraversal)
{
Bytecode.AddStep("optional", optionalTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the or step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Or (params ITraversal[] orTraversals)
+ public GraphTraversal<TStart, TEnd> Or (params ITraversal[] orTraversals)
{
if (orTraversals == null) throw new ArgumentNullException(nameof(orTraversals));
var args = new List<object>(orTraversals.Length);
args.AddRange(orTraversals);
Bytecode.AddStep("or", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the order step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Order ()
+ public GraphTraversal<TStart, TEnd> Order ()
{
Bytecode.AddStep("order");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the order step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Order (Scope scope)
+ public GraphTraversal<TStart, TEnd> Order (Scope scope)
{
Bytecode.AddStep("order", scope);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the otherV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> OtherV ()
+ public GraphTraversal<TStart, Vertex> OtherV ()
{
Bytecode.AddStep("otherV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the out step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> Out (params string[] edgeLabels)
+ public GraphTraversal<TStart, Vertex> Out (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("out", args.ToArray());
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the outE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> OutE (params string[] edgeLabels)
+ public GraphTraversal<TStart, Edge> OutE (params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(edgeLabels.Length);
args.AddRange(edgeLabels);
Bytecode.AddStep("outE", args.ToArray());
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the outV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> OutV ()
+ public GraphTraversal<TStart, Vertex> OutV ()
{
Bytecode.AddStep("outV");
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the pageRank step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> PageRank ()
+ public GraphTraversal<TStart, TEnd> PageRank ()
{
Bytecode.AddStep("pageRank");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the pageRank step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> PageRank (double alpha)
+ public GraphTraversal<TStart, TEnd> PageRank (double alpha)
{
Bytecode.AddStep("pageRank", alpha);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the path step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Path> Path ()
+ public GraphTraversal<TStart, Path> Path ()
{
Bytecode.AddStep("path");
- return Wrap<S, Path>(this);
+ return Wrap<TStart, Path>(this);
}
/// <summary>
/// Adds the peerPressure step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> PeerPressure ()
+ public GraphTraversal<TStart, TEnd> PeerPressure ()
{
Bytecode.AddStep("peerPressure");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the profile step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Profile<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Profile<TNewEnd> ()
{
Bytecode.AddStep("profile");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the profile step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Profile (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Profile (string sideEffectKey)
{
Bytecode.AddStep("profile", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the program step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Program (object vertexProgram)
+ public GraphTraversal<TStart, TEnd> Program (object vertexProgram)
{
Bytecode.AddStep("program", vertexProgram);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the project step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<string, E2>> Project<E2> (string projectKey, params string[] otherProjectKeys)
+ public GraphTraversal<TStart, IDictionary<string, TNewEnd>> Project<TNewEnd> (string projectKey, params string[] otherProjectKeys)
{
// Using null as a key is allowed in Java, but we cannot support it in .NET as null is not allowed as a
// Dictionary key.
@@ -1470,13 +1488,13 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(1 + otherProjectKeys.Length) { projectKey };
args.AddRange(otherProjectKeys);
Bytecode.AddStep("project", args.ToArray());
- return Wrap<S, IDictionary<string, E2>>(this);
+ return Wrap<TStart, IDictionary<string, TNewEnd>>(this);
}
/// <summary>
/// Adds the properties step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Properties<E2> (params string[] propertyKeys)
+ public GraphTraversal<TStart, TNewEnd> Properties<TNewEnd> (params string[] propertyKeys)
{
// Using null as a key is allowed in Java, but we cannot support it in .NET as null is not allowed as a
// Dictionary key.
@@ -1485,13 +1503,13 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(propertyKeys.Length);
args.AddRange(propertyKeys);
Bytecode.AddStep("properties", args.ToArray());
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the property step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Property(Cardinality cardinality, object key, object value,
+ public GraphTraversal<TStart, TEnd> Property(Cardinality cardinality, object key, object value,
params object[] keyValues)
{
if (keyValues == null) throw new ArgumentNullException(nameof(keyValues));
@@ -1499,138 +1517,138 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(3 + keyValues.Length) { cardinality, key, value };
args.AddRange(keyValues);
Bytecode.AddStep("property", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the property step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Property (object key, object value, params object[] keyValues)
+ public GraphTraversal<TStart, TEnd> Property (object key, object value, params object[] keyValues)
{
if (keyValues == null) throw new ArgumentNullException(nameof(keyValues));
var args = new List<object>(2 + keyValues.Length) { key, value };
args.AddRange(keyValues);
Bytecode.AddStep("property", args.ToArray());
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the propertyMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<string, E2>> PropertyMap<E2> (params string[] propertyKeys)
+ public GraphTraversal<TStart, IDictionary<string, TNewEnd>> PropertyMap<TNewEnd> (params string[] propertyKeys)
{
if (propertyKeys == null) throw new ArgumentNullException(nameof(propertyKeys));
var args = new List<object>(propertyKeys.Length);
args.AddRange(propertyKeys);
Bytecode.AddStep("propertyMap", args.ToArray());
- return Wrap<S, IDictionary<string, E2>>(this);
+ return Wrap<TStart, IDictionary<string, TNewEnd>>(this);
}
/// <summary>
/// Adds the range step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Range<E2> (Scope scope, long low, long high)
+ public GraphTraversal<TStart, TNewEnd> Range<TNewEnd> (Scope scope, long low, long high)
{
Bytecode.AddStep("range", scope, low, high);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the range step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Range<E2> (long low, long high)
+ public GraphTraversal<TStart, TNewEnd> Range<TNewEnd> (long low, long high)
{
Bytecode.AddStep("range", low, high);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the read step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Read ()
+ public GraphTraversal<TStart, TEnd> Read ()
{
Bytecode.AddStep("read");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the repeat step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Repeat (string loopName, ITraversal repeatTraversal)
+ public GraphTraversal<TStart, TEnd> Repeat (string loopName, ITraversal repeatTraversal)
{
Bytecode.AddStep("repeat", loopName, repeatTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the repeat step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Repeat (ITraversal repeatTraversal)
+ public GraphTraversal<TStart, TEnd> Repeat (ITraversal repeatTraversal)
{
Bytecode.AddStep("repeat", repeatTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the sack step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Sack<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Sack<TNewEnd> ()
{
Bytecode.AddStep("sack");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the sack step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Sack (IBiFunction sackOperator)
+ public GraphTraversal<TStart, TEnd> Sack (IBiFunction sackOperator)
{
Bytecode.AddStep("sack", sackOperator);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the sample step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Sample (Scope scope, int amountToSample)
+ public GraphTraversal<TStart, TEnd> Sample (Scope scope, int amountToSample)
{
Bytecode.AddStep("sample", scope, amountToSample);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the sample step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Sample (int amountToSample)
+ public GraphTraversal<TStart, TEnd> Sample (int amountToSample)
{
Bytecode.AddStep("sample", amountToSample);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, ICollection<E2>> Select<E2> (Column column)
+ public GraphTraversal<TStart, ICollection<TNewEnd>> Select<TNewEnd> (Column column)
{
Bytecode.AddStep("select", column);
- return Wrap<S, ICollection<E2>>(this);
+ return Wrap<TStart, ICollection<TNewEnd>>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Select<E2> (Pop pop, string selectKey)
+ public GraphTraversal<TStart, TNewEnd> Select<TNewEnd> (Pop pop, string selectKey)
{
Bytecode.AddStep("select", pop, selectKey);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<string, E2>> Select<E2>(Pop pop, string selectKey1, string selectKey2,
+ public GraphTraversal<TStart, IDictionary<string, TNewEnd>> Select<TNewEnd>(Pop pop, string selectKey1, string selectKey2,
params string[] otherSelectKeys)
{
if (otherSelectKeys == null) throw new ArgumentNullException(nameof(otherSelectKeys));
@@ -1638,31 +1656,31 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(3 + otherSelectKeys.Length) { pop, selectKey1, selectKey2 };
args.AddRange(otherSelectKeys);
Bytecode.AddStep("select", args.ToArray());
- return Wrap<S, IDictionary<string, E2>>(this);
+ return Wrap<TStart, IDictionary<string, TNewEnd>>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Select<E2> (Pop pop, ITraversal keyTraversal)
+ public GraphTraversal<TStart, TNewEnd> Select<TNewEnd> (Pop pop, ITraversal keyTraversal)
{
Bytecode.AddStep("select", pop, keyTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Select<E2> (string selectKey)
+ public GraphTraversal<TStart, TNewEnd> Select<TNewEnd> (string selectKey)
{
Bytecode.AddStep("select", selectKey);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<string, E2>> Select<E2>(string selectKey1, string selectKey2,
+ public GraphTraversal<TStart, IDictionary<string, TNewEnd>> Select<TNewEnd>(string selectKey1, string selectKey2,
params string[] otherSelectKeys)
{
if (otherSelectKeys == null) throw new ArgumentNullException(nameof(otherSelectKeys));
@@ -1670,308 +1688,308 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(2 + otherSelectKeys.Length) { selectKey1, selectKey2 };
args.AddRange(otherSelectKeys);
Bytecode.AddStep("select", args.ToArray());
- return Wrap<S, IDictionary<string, E2>>(this);
+ return Wrap<TStart, IDictionary<string, TNewEnd>>(this);
}
/// <summary>
/// Adds the select step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Select<E2> (ITraversal keyTraversal)
+ public GraphTraversal<TStart, TNewEnd> Select<TNewEnd> (ITraversal keyTraversal)
{
Bytecode.AddStep("select", keyTraversal);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the shortestPath step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Path> ShortestPath ()
+ public GraphTraversal<TStart, Path> ShortestPath ()
{
Bytecode.AddStep("shortestPath");
- return Wrap<S, Path>(this);
+ return Wrap<TStart, Path>(this);
}
/// <summary>
/// Adds the sideEffect step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> SideEffect (IConsumer consumer)
+ public GraphTraversal<TStart, TEnd> SideEffect (IConsumer consumer)
{
Bytecode.AddStep("sideEffect", consumer);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the sideEffect step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> SideEffect (ITraversal sideEffectTraversal)
+ public GraphTraversal<TStart, TEnd> SideEffect (ITraversal sideEffectTraversal)
{
Bytecode.AddStep("sideEffect", sideEffectTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the simplePath step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> SimplePath ()
+ public GraphTraversal<TStart, TEnd> SimplePath ()
{
Bytecode.AddStep("simplePath");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the skip step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Skip<E2> (Scope scope, long skip)
+ public GraphTraversal<TStart, TNewEnd> Skip<TNewEnd> (Scope scope, long skip)
{
Bytecode.AddStep("skip", scope, skip);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the skip step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Skip<E2> (long skip)
+ public GraphTraversal<TStart, TNewEnd> Skip<TNewEnd> (long skip)
{
Bytecode.AddStep("skip", skip);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the store step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Store (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Store (string sideEffectKey)
{
Bytecode.AddStep("store", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the subgraph step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> Subgraph (string sideEffectKey)
+ public GraphTraversal<TStart, Edge> Subgraph (string sideEffectKey)
{
Bytecode.AddStep("subgraph", sideEffectKey);
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the sum step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Sum<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Sum<TNewEnd> ()
{
Bytecode.AddStep("sum");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the sum step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Sum<E2> (Scope scope)
+ public GraphTraversal<TStart, TNewEnd> Sum<TNewEnd> (Scope scope)
{
Bytecode.AddStep("sum", scope);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the tail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Tail<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Tail<TNewEnd> ()
{
Bytecode.AddStep("tail");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the tail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Tail<E2> (Scope scope)
+ public GraphTraversal<TStart, TNewEnd> Tail<TNewEnd> (Scope scope)
{
Bytecode.AddStep("tail", scope);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the tail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Tail<E2> (Scope scope, long limit)
+ public GraphTraversal<TStart, TNewEnd> Tail<TNewEnd> (Scope scope, long limit)
{
Bytecode.AddStep("tail", scope, limit);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the tail step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Tail<E2> (long limit)
+ public GraphTraversal<TStart, TNewEnd> Tail<TNewEnd> (long limit)
{
Bytecode.AddStep("tail", limit);
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the timeLimit step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> TimeLimit (long timeLimit)
+ public GraphTraversal<TStart, TEnd> TimeLimit (long timeLimit)
{
Bytecode.AddStep("timeLimit", timeLimit);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the times step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Times (int maxLoops)
+ public GraphTraversal<TStart, TEnd> Times (int maxLoops)
{
Bytecode.AddStep("times", maxLoops);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the to step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> To (Direction direction, params string[] edgeLabels)
+ public GraphTraversal<TStart, Vertex> To (Direction direction, params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(1 + edgeLabels.Length) { direction };
args.AddRange(edgeLabels);
Bytecode.AddStep("to", args.ToArray());
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the to step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> To (string toStepLabel)
+ public GraphTraversal<TStart, TEnd> To (string toStepLabel)
{
Bytecode.AddStep("to", toStepLabel);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the to step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> To (ITraversal toVertex)
+ public GraphTraversal<TStart, TEnd> To (ITraversal toVertex)
{
Bytecode.AddStep("to", toVertex);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the to step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> To (Vertex toVertex)
+ public GraphTraversal<TStart, TEnd> To (Vertex toVertex)
{
Bytecode.AddStep("to", toVertex);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the toE step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Edge> ToE (Direction direction, params string[] edgeLabels)
+ public GraphTraversal<TStart, Edge> ToE (Direction direction, params string[] edgeLabels)
{
if (edgeLabels == null) throw new ArgumentNullException(nameof(edgeLabels));
var args = new List<object>(1 + edgeLabels.Length) {direction};
args.AddRange(edgeLabels);
Bytecode.AddStep("toE", args.ToArray());
- return Wrap<S, Edge>(this);
+ return Wrap<TStart, Edge>(this);
}
/// <summary>
/// Adds the toV step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, Vertex> ToV (Direction direction)
+ public GraphTraversal<TStart, Vertex> ToV (Direction direction)
{
Bytecode.AddStep("toV", direction);
- return Wrap<S, Vertex>(this);
+ return Wrap<TStart, Vertex>(this);
}
/// <summary>
/// Adds the tree step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Tree<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Tree<TNewEnd> ()
{
Bytecode.AddStep("tree");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the tree step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Tree (string sideEffectKey)
+ public GraphTraversal<TStart, TEnd> Tree (string sideEffectKey)
{
Bytecode.AddStep("tree", sideEffectKey);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the unfold step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Unfold<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Unfold<TNewEnd> ()
{
Bytecode.AddStep("unfold");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the union step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Union<E2> (params ITraversal[] unionTraversals)
+ public GraphTraversal<TStart, TNewEnd> Union<TNewEnd> (params ITraversal[] unionTraversals)
{
if (unionTraversals == null) throw new ArgumentNullException(nameof(unionTraversals));
var args = new List<object>(unionTraversals.Length);
args.AddRange(unionTraversals);
Bytecode.AddStep("union", args.ToArray());
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the until step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Until (IPredicate untilPredicate)
+ public GraphTraversal<TStart, TEnd> Until (IPredicate untilPredicate)
{
Bytecode.AddStep("until", untilPredicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the until step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Until (ITraversal untilTraversal)
+ public GraphTraversal<TStart, TEnd> Until (ITraversal untilTraversal)
{
Bytecode.AddStep("until", untilTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the value step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Value<E2> ()
+ public GraphTraversal<TStart, TNewEnd> Value<TNewEnd> ()
{
Bytecode.AddStep("value");
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the valueMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<TKey, TValue>> ValueMap<TKey, TValue> (params string[] propertyKeys)
+ public GraphTraversal<TStart, IDictionary<TKey, TValue>> ValueMap<TKey, TValue> (params string[] propertyKeys)
{
if (propertyKeys == null) throw new ArgumentNullException(nameof(propertyKeys));
var args = new List<object>(propertyKeys.Length);
args.AddRange(propertyKeys);
Bytecode.AddStep("valueMap", args.ToArray());
- return Wrap<S, IDictionary<TKey, TValue>>(this);
+ return Wrap<TStart, IDictionary<TKey, TValue>>(this);
}
/// <summary>
/// Adds the valueMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, IDictionary<TKey, TValue>> ValueMap<TKey, TValue>(bool includeTokens,
+ public GraphTraversal<TStart, IDictionary<TKey, TValue>> ValueMap<TKey, TValue>(bool includeTokens,
params string[] propertyKeys)
{
if (propertyKeys == null) throw new ArgumentNullException(nameof(propertyKeys));
@@ -1979,83 +1997,83 @@ namespace Gremlin.Net.Process.Traversal
var args = new List<object>(1 + propertyKeys.Length) { includeTokens };
args.AddRange(propertyKeys);
Bytecode.AddStep("valueMap", args.ToArray());
- return Wrap<S, IDictionary<TKey, TValue>>(this);
+ return Wrap<TStart, IDictionary<TKey, TValue>>(this);
}
/// <summary>
/// Adds the values step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E2> Values<E2> (params string[] propertyKeys)
+ public GraphTraversal<TStart, TNewEnd> Values<TNewEnd> (params string[] propertyKeys)
{
if (propertyKeys == null) throw new ArgumentNullException(nameof(propertyKeys));
var args = new List<object>(propertyKeys.Length);
args.AddRange(propertyKeys);
Bytecode.AddStep("values", args.ToArray());
- return Wrap<S, E2>(this);
+ return Wrap<TStart, TNewEnd>(this);
}
/// <summary>
/// Adds the where step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Where (P predicate)
+ public GraphTraversal<TStart, TEnd> Where (P predicate)
{
Bytecode.AddStep("where", predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the where step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Where (string startKey, P predicate)
+ public GraphTraversal<TStart, TEnd> Where (string startKey, P predicate)
{
Bytecode.AddStep("where", startKey, predicate);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the where step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Where (ITraversal whereTraversal)
+ public GraphTraversal<TStart, TEnd> Where (ITraversal whereTraversal)
{
Bytecode.AddStep("where", whereTraversal);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the with step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> With (string key)
+ public GraphTraversal<TStart, TEnd> With (string key)
{
Bytecode.AddStep("with", key);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the with step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> With (string key, object value)
+ public GraphTraversal<TStart, TEnd> With (string key, object value)
{
Bytecode.AddStep("with", key, value);
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Adds the write step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
- public GraphTraversal<S, E> Write ()
+ public GraphTraversal<TStart, TEnd> Write ()
{
Bytecode.AddStep("write");
- return Wrap<S, E>(this);
+ return Wrap<TStart, TEnd>(this);
}
/// <summary>
/// Make a copy of a traversal that is reset for iteration.
/// </summary>
- public GraphTraversal<S, E> Clone()
+ public GraphTraversal<TStart, TEnd> Clone()
{
- return new GraphTraversal<S, E>(TraversalStrategies, new Bytecode(Bytecode));
+ return new GraphTraversal<TStart, TEnd>(TraversalStrategies, new Bytecode(Bytecode));
}
}
}
\ No newline at end of file
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
index 6f18bc2df8..1f3d4dc6e3 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
@@ -435,9 +435,9 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the inject step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Inject<S>(params S[] starts)
+ public GraphTraversal<TStart, TStart> Inject<TStart>(params TStart[] starts)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
// null starts is treated as g.inject(null) meaning inject a single null traverser
if (starts == null)
@@ -458,10 +458,10 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the io step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Io<S>(string file)
+ public GraphTraversal<TStart, TStart> Io<TStart>(string file)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
- traversal.Bytecode.AddStep("io", file);
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
+ traversal.Bytecode.AddStep("io", file);
return traversal;
}
@@ -469,9 +469,9 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the call step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Call<S>()
+ public GraphTraversal<TStart, TStart> Call<TStart>()
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
traversal.Bytecode.AddStep("call");
return traversal;
}
@@ -480,9 +480,9 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the call step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Call<S>(string service)
+ public GraphTraversal<TStart, TStart> Call<TStart>(string service)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
traversal.Bytecode.AddStep("call", service);
return traversal;
}
@@ -491,9 +491,9 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the call step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Call<S>(string service, IDictionary<object,object> m)
+ public GraphTraversal<TStart, TStart> Call<TStart>(string service, IDictionary<object, object> m)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
traversal.Bytecode.AddStep("call", service, m);
return traversal;
}
@@ -502,9 +502,9 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the call step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Call<S>(string service, ITraversal t)
+ public GraphTraversal<TStart, TStart> Call<TStart>(string service, ITraversal t)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
traversal.Bytecode.AddStep("call", service, t);
return traversal;
}
@@ -513,14 +513,13 @@ namespace Gremlin.Net.Process.Traversal
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph traversal source and adds the call step to that
/// traversal.
/// </summary>
- public GraphTraversal<S, S> Call<S>(string service, IDictionary<object,object> m, ITraversal t)
+ public GraphTraversal<TStart, TStart> Call<TStart>(string service, IDictionary<object, object> m, ITraversal t)
{
- var traversal = new GraphTraversal<S, S>(TraversalStrategies, new Bytecode(Bytecode));
+ var traversal = new GraphTraversal<TStart, TStart>(TraversalStrategies, new Bytecode(Bytecode));
traversal.Bytecode.AddStep("call", service, m, t);
return traversal;
}
-
}
#pragma warning restore 1591
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversal.cs
index 95cbb740dc..a3393a85d0 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversal.cs
@@ -59,13 +59,13 @@ namespace Gremlin.Net.Process.Traversal
/// <summary>
/// A traversal represents a directed walk over a graph.
/// </summary>
- public interface ITraversal<S, E> : ITraversal, IEnumerator<E>
+ public interface ITraversal<TStart, TEnd> : ITraversal, IEnumerator<TEnd>
{
/// <summary>
/// Gets the next result from the traversal.
/// </summary>
/// <returns>The result.</returns>
- E Next();
+ TEnd Next();
/// <summary>
/// Determines if the traversal contains any additional results for iteration.
@@ -78,13 +78,13 @@ namespace Gremlin.Net.Process.Traversal
/// </summary>
/// <param name="amount">The number of results to get.</param>
/// <returns>The n-results.</returns>
- IEnumerable<E> Next(int amount);
+ IEnumerable<TEnd> Next(int amount);
/// <summary>
/// Iterates all <see cref="Traverser" /> instances in the traversal.
/// </summary>
/// <returns>The fully drained traversal.</returns>
- new ITraversal<S, E> Iterate();
+ new ITraversal<TStart, TEnd> Iterate();
/// <summary>
/// Gets the next <see cref="Traverser" />.
@@ -96,13 +96,13 @@ namespace Gremlin.Net.Process.Traversal
/// Puts all the results into a <see cref="IList{T}" />.
/// </summary>
/// <returns>The results in a list.</returns>
- IList<E> ToList();
+ IList<TEnd> ToList();
/// <summary>
/// Puts all the results into a <see cref="ISet{T}" />.
/// </summary>
/// <returns>The results in a set.</returns>
- ISet<E> ToSet();
+ ISet<TEnd> ToSet();
/// <summary>
/// Starts a promise to execute a function on the current traversal that will be completed in the future.
@@ -110,6 +110,6 @@ namespace Gremlin.Net.Process.Traversal
/// <typeparam name="TReturn">The return type of the <paramref name="callback" />.</typeparam>
/// <param name="callback">The function to execute on the current traversal.</param>
/// <returns>The result of the executed <paramref name="callback" />.</returns>
- Task<TReturn> Promise<TReturn>(Func<ITraversal<S, E>, TReturn> callback);
+ Task<TReturn> Promise<TReturn>(Func<ITraversal<TStart, TEnd>, TReturn> callback);
}
}
\ No newline at end of file
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversalStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversalStrategy.cs
index 013d62ad50..3e7709cd64 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversalStrategy.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/ITraversalStrategy.cs
@@ -35,12 +35,12 @@ namespace Gremlin.Net.Process.Traversal
/// Applies the strategy to the given <see cref="ITraversal" />.
/// </summary>
/// <param name="traversal">The <see cref="ITraversal" /> the strategy should be applied to.</param>
- void Apply<S, E>(ITraversal<S, E> traversal);
+ void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal);
/// <summary>
/// Applies the strategy to the given <see cref="ITraversal" /> asynchronously.
/// </summary>
/// <param name="traversal">The <see cref="ITraversal" /> the strategy should be applied to.</param>
- Task ApplyAsync<S, E>(ITraversal<S, E> traversal);
+ Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal);
}
}
\ No newline at end of file
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/AbstractTraversalStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/AbstractTraversalStrategy.cs
index 418ac7ec5d..8a2c9c5a90 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/AbstractTraversalStrategy.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/AbstractTraversalStrategy.cs
@@ -94,12 +94,12 @@ namespace Gremlin.Net.Process.Traversal.Strategy
}
/// <inheritdoc />
- public virtual void Apply<S, E>(ITraversal<S, E> traversal)
+ public virtual void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
}
/// <inheritdoc />
- public virtual Task ApplyAsync<S, E>(ITraversal<S, E> traversal)
+ public virtual Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
return Task.CompletedTask;
}
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
index 93de0b8c59..bc62fc3695 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs
@@ -49,6 +49,16 @@ namespace Gremlin.Net.Process.Traversal
: new GraphTraversal<object, Vertex>().V(vertexIdsOrElements);
}
+ /// <summary>
+ /// Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the E step to that traversal.
+ /// </summary>
+ public static GraphTraversal<object, Edge> E(params object[] edgeIdsOrElements)
+ {
+ return edgeIdsOrElements is { Length: 0 }
+ ? new GraphTraversal<object, Edge>().E()
+ : new GraphTraversal<object, Edge>().E(edgeIdsOrElements);
+ }
+
/// <summary>
/// Spawns a <see cref="GraphTraversal{SType, EType}" /> and adds the addE step to that traversal.
/// </summary>
diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
index 9e1f59f834..2d525eed41 100644
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs
@@ -494,6 +494,12 @@ namespace Gremlin.Net.IntegrationTest.Gherkin
{"g_V_repeatXoutX_timesX8X_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Repeat(__.Out()).Times(8).Count()}},
{"g_V_repeatXoutX_timesX5X_asXaX_outXwrittenByX_asXbX_selectXa_bX_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Repeat(__.Out()).Times(5).As("a").Out("writtenBy").As("b").Select<object>("a","b").Count()}},
{"g_V_repeatXoutX_timesX3X_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Repeat(__.Out()).Times(3).Count()}},
+ {"g_V_EX11X", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().E(p["eid11"])}},
+ {"g_EX11X_E", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.E(p["eid11"]).E()}},
+ {"g_V_EXnullX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().E(null)}},
+ {"g_V_EXlistXnullXX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().E(p["xx1"])}},
+ {"g_injectX1X_EX11_nullX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.Inject(1).E(p["eid11"],null)}},
+ {"g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.AddV("person").Property("name","josh").AddV("person").Property("name","vadas"), (g,p) =>g.Inject(1).Coalesce<object>(__.E().HasLabel("tests"),__.AddE("tests").From(__.V().Has("name","josh")).To(__.V().Has("name","vadas"))), (g,p) =>g.E().HasLabel("tests")}},
{"g_V_order_byXlangX_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Order().By("lang").Count()}},
{"g_E_sampleX1X_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.E().Sample(1).Count()}},
{"g_V_sampleX1X_byXageX_count", new List<Func<GraphTraversalSource, IDictionary<string, object>, ITraversal>> {(g,p) =>g.V().Sample(1).By("age").Count()}},
diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/TestTraversalStrategy.cs b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/TestTraversalStrategy.cs
index f908789a21..c2330041b5 100644
--- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/TestTraversalStrategy.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/TestTraversalStrategy.cs
@@ -36,12 +36,12 @@ namespace Gremlin.Net.UnitTest.Process.Traversal
_traversers = traversersToAddOnApplication;
}
- public void Apply<S, E>(ITraversal<S, E> traversal)
+ public void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
traversal.Traversers = _traversers;
}
- public Task ApplyAsync<S, E>(ITraversal<S, E> traversal)
+ public Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
{
traversal.Traversers = _traversers;
return Task.CompletedTask;
diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
index 0d4a56adb9..bf1d4f1675 100644
--- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
@@ -420,6 +420,7 @@ public class GroovyTranslatorTests
{ _g.V().Has("runways", P.Inside(3, 5)), "g.V().has('runways', P.inside([3, 5]))" },
{ _g.V("44").OutE().ElementMap<object>(), "g.V('44').outE().elementMap()" },
{ _g.V("44").ValueMap<object, object>().By(__.Unfold<object>()), "g.V('44').valueMap().by(__.unfold())" },
+ { _g.V().E("1"), "g.V().E('1')" },
// TODO: Support WithOptions
{
diff --git a/gremlin-go/driver/anonymousTraversal.go b/gremlin-go/driver/anonymousTraversal.go
index a9475c6186..37fda56a03 100644
--- a/gremlin-go/driver/anonymousTraversal.go
+++ b/gremlin-go/driver/anonymousTraversal.go
@@ -45,6 +45,8 @@ func Traversal_() AnonymousTraversalSource {
type AnonymousTraversal interface {
// T__ creates an empty GraphTraversal.
T__(args ...interface{}) *GraphTraversal
+ // E adds the e step to the GraphTraversal.
+ E(args ...interface{}) *GraphTraversal
// V adds the v step to the GraphTraversal.
V(args ...interface{}) *GraphTraversal
// AddE adds the addE step to the GraphTraversal.
@@ -278,6 +280,11 @@ func (anonymousTraversal *anonymousTraversal) T__(args ...interface{}) *GraphTra
return anonymousTraversal.Inject(args...)
}
+// E adds the e step to the GraphTraversal.
+func (anonymousTraversal *anonymousTraversal) E(args ...interface{}) *GraphTraversal {
+ return anonymousTraversal.graphTraversal().E(args...)
+}
+
// V adds the v step to the GraphTraversal.
func (anonymousTraversal *anonymousTraversal) V(args ...interface{}) *GraphTraversal {
return anonymousTraversal.graphTraversal().V(args...)
diff --git a/gremlin-go/driver/cucumber/gremlin.go b/gremlin-go/driver/cucumber/gremlin.go
index 88a5be98e2..9e692cfde5 100644
--- a/gremlin-go/driver/cucumber/gremlin.go
+++ b/gremlin-go/driver/cucumber/gremlin.go
@@ -465,6 +465,12 @@ var translationMap = map[string][]func(g *gremlingo.GraphTraversalSource, p map[
"g_V_repeatXoutX_timesX8X_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Repeat(gremlingo.T__.Out()).Times(8).Count()}},
"g_V_repeatXoutX_timesX5X_asXaX_outXwrittenByX_asXbX_selectXa_bX_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Repeat(gremlingo.T__.Out()).Times(5).As("a").Out("writtenBy").As("b").Select("a", "b").Count()}},
"g_V_repeatXoutX_timesX3X_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Repeat(gremlingo.T__.Out()).Times(3).Count()}},
+ "g_V_EX11X": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().E(p["eid11"])}},
+ "g_EX11X_E": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.E(p["eid11"]).E()}},
+ "g_V_EXnullX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().E(nil)}},
+ "g_V_EXlistXnullXX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().E(p["xx1"])}},
+ "g_injectX1X_EX11_nullX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.Inject(1).E(p["eid11"], nil)}},
+ "g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.AddV("person").Property("name", "josh").AddV("person").Property("name", "vadas")}, func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.Inject(1).Coalesce(gremlingo.T__.E().HasLabel("tests"), gremlingo.T__.AddE("tests").From(gremli [...]
"g_V_order_byXlangX_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Order().By("lang").Count()}},
"g_E_sampleX1X_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.E().Sample(1).Count()}},
"g_V_sampleX1X_byXageX_count": {func(g *gremlingo.GraphTraversalSource, p map[string]interface{}) *gremlingo.GraphTraversal {return g.V().Sample(1).By("age").Count()}},
diff --git a/gremlin-go/driver/graphTraversal.go b/gremlin-go/driver/graphTraversal.go
index d398650629..c63dea3e16 100644
--- a/gremlin-go/driver/graphTraversal.go
+++ b/gremlin-go/driver/graphTraversal.go
@@ -58,6 +58,12 @@ func (g *GraphTraversal) V(args ...interface{}) *GraphTraversal {
return g
}
+// E adds the e step to the GraphTraversal.
+func (g *GraphTraversal) E(args ...interface{}) *GraphTraversal {
+ g.Bytecode.AddStep("E", args...)
+ return g
+}
+
// AddE adds the addE step to the GraphTraversal.
func (g *GraphTraversal) AddE(args ...interface{}) *GraphTraversal {
g.Bytecode.AddStep("addE", args...)
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
index 292439ee6c..60b03ccf80 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
@@ -364,6 +364,16 @@ class GraphTraversal extends Traversal {
return this;
}
+ /**
+ * Graph traversal E method.
+ * @param {...Object} args
+ * @returns {GraphTraversal}
+ */
+ E(...args) {
+ this.bytecode.addStep('E', args);
+ return this;
+ }
+
/**
* Graph traversal addE method.
* @param {...Object} args
@@ -1443,6 +1453,7 @@ function callOnEmptyTraversal(fnName, args) {
* @type {Object}
*/
const statics = {
+ E: (...args) => callOnEmptyTraversal('E', args),
V: (...args) => callOnEmptyTraversal('V', args),
addE: (...args) => callOnEmptyTraversal('addE', args),
addV: (...args) => callOnEmptyTraversal('addV', args),
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
index 64979d72c9..91438c4ed6 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/cucumber/gremlin.js
@@ -484,6 +484,12 @@ const gremlins = {
g_V_repeatXoutX_timesX8X_count: [function({g}) { return g.V().repeat(__.out()).times(8).count() }],
g_V_repeatXoutX_timesX5X_asXaX_outXwrittenByX_asXbX_selectXa_bX_count: [function({g}) { return g.V().repeat(__.out()).times(5).as("a").out("writtenBy").as("b").select("a","b").count() }],
g_V_repeatXoutX_timesX3X_count: [function({g}) { return g.V().repeat(__.out()).times(3).count() }],
+ g_V_EX11X: [function({g, eid11}) { return g.V().E(eid11) }],
+ g_EX11X_E: [function({g, eid11}) { return g.E(eid11).E() }],
+ g_V_EXnullX: [function({g}) { return g.V().E(null) }],
+ g_V_EXlistXnullXX: [function({g, xx1}) { return g.V().E(xx1) }],
+ g_injectX1X_EX11_nullX: [function({g, eid11}) { return g.inject(1).E(eid11,null) }],
+ g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX: [function({g}) { return g.addV("person").property("name","josh").addV("person").property("name","vadas") }, function({g}) { return g.inject(1).coalesce(__.E().hasLabel("tests"),__.addE("tests").from_(__.V().has("name","josh")).to(__.V().has("name","vadas"))) }, function({g}) { return g.E().hasLabel("tests") }],
g_V_order_byXlangX_count: [function({g}) { return g.V().order().by("lang").count() }],
g_E_sampleX1X_count: [function({g}) { return g.E().sample(1).count() }],
g_V_sampleX1X_byXageX_count: [function({g}) { return g.V().sample(1).by("age").count() }],
diff --git a/gremlin-language/src/main/antlr4/Gremlin.g4 b/gremlin-language/src/main/antlr4/Gremlin.g4
index 33a94d4248..7d9893e014 100644
--- a/gremlin-language/src/main/antlr4/Gremlin.g4
+++ b/gremlin-language/src/main/antlr4/Gremlin.g4
@@ -176,6 +176,7 @@ terminatedTraversal
traversalMethod
: traversalMethod_V
+ | traversalMethod_E
| traversalMethod_addE
| traversalMethod_addV
| traversalMethod_mergeE
@@ -286,6 +287,10 @@ traversalMethod_V
: 'V' LPAREN genericLiteralList RPAREN
;
+traversalMethod_E
+ : 'E' LPAREN genericLiteralList RPAREN
+ ;
+
traversalMethod_addE
: 'addE' LPAREN stringBasedLiteral RPAREN #traversalMethod_addE_String
| 'addE' LPAREN nestedTraversal RPAREN #traversalMethod_addE_Traversal
diff --git a/gremlin-python/src/main/python/gremlin_python/process/graph_traversal.py b/gremlin-python/src/main/python/gremlin_python/process/graph_traversal.py
index c090ada6de..6905b0695a 100644
--- a/gremlin-python/src/main/python/gremlin_python/process/graph_traversal.py
+++ b/gremlin-python/src/main/python/gremlin_python/process/graph_traversal.py
@@ -274,6 +274,10 @@ class GraphTraversal(Traversal):
self.bytecode.add_step("V", *args)
return self
+ def E(self, *args):
+ self.bytecode.add_step("E", *args)
+ return self
+
def addE(self, *args):
warnings.warn(
"gremlin_python.process.GraphTraversal.addE will be replaced by "
@@ -926,6 +930,10 @@ class __(object, metaclass=MagicType):
def __(cls, *args):
return __.inject(*args)
+ @classmethod
+ def E(cls, *args):
+ return cls.graph_traversal(None, None, Bytecode()).E(*args)
+
@classmethod
def V(cls, *args):
return cls.graph_traversal(None, None, Bytecode()).V(*args)
@@ -1582,6 +1590,10 @@ class Transaction:
return session
+def E(*args):
+ return __.E(*args)
+
+
def V(*args):
return __.V(*args)
diff --git a/gremlin-python/src/main/python/tests/process/test_translator.py b/gremlin-python/src/main/python/tests/process/test_translator.py
index e0230d6885..61db50ada3 100644
--- a/gremlin-python/src/main/python/tests/process/test_translator.py
+++ b/gremlin-python/src/main/python/tests/process/test_translator.py
@@ -350,6 +350,12 @@ class TestTraversalStrategies(object):
# 98
tests.append([g.withComputer().V().shortestPath().with_(ShortestPath.target, __.has('name','peter')),
"g.withStrategies(new VertexProgramStrategy()).V().shortestPath().with('~tinkerpop.shortestPath.target',__.has('name','peter'))"])
+ # 99
+ tests.append([g.V().coalesce(__.E(),__.addE('person')),
+ "g.V().coalesce(__.E(),__.addE('person'))"])
+ # 100
+ tests.append([g.inject(1).E(),
+ "g.inject(1).E()"])
tlr = Translator().of('g')
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphBinaryRemoteGraphComputerProvider.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphBinaryRemoteGraphComputerProvider.java
index 8b1cfea178..6701b9f7ab 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphBinaryRemoteGraphComputerProvider.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphBinaryRemoteGraphComputerProvider.java
@@ -55,6 +55,10 @@ import org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerGraphComp
test = "org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphTest",
method = "g_VX1X_V_valuesXnameX",
reason = "Mid-traversal V()/E() is currently not supported on GraphComputer")
+@Graph.OptOut(
+ test = "org.apache.tinkerpop.gremlin.process.traversal.step.map.EdgeTest",
+ method = "*",
+ reason = "Mid-traversal V()/E() is currently not supported on GraphComputer")
@Graph.OptOut(
test = "org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.InjectTest",
method = "*",
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphSONRemoteGraphComputerProvider.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphSONRemoteGraphComputerProvider.java
index 68588cec3c..77e58d7149 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphSONRemoteGraphComputerProvider.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/driver/remote/GraphSONRemoteGraphComputerProvider.java
@@ -55,6 +55,10 @@ import org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerGraphComp
test = "org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphTest",
method = "g_VX1X_V_valuesXnameX",
reason = "Mid-traversal V()/E() is currently not supported on GraphComputer")
+@Graph.OptOut(
+ test = "org.apache.tinkerpop.gremlin.process.traversal.step.map.EdgeTest",
+ method = "*",
+ reason = "Mid-traversal V()/E() is currently not supported on GraphComputer")
@Graph.OptOut(
test = "org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.InjectTest",
method = "*",
diff --git a/gremlin-test/features/map/Edge.feature b/gremlin-test/features/map/Edge.feature
new file mode 100644
index 0000000000..f3d92320d2
--- /dev/null
+++ b/gremlin-test/features/map/Edge.feature
@@ -0,0 +1,99 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+@StepClassMap @StepE
+Feature: Step - E()
+
+ Scenario: g_V_EX11X
+ Given the modern graph
+ And using the parameter eid11 defined as "e[josh-created->lop].id"
+ And the traversal of
+ """
+ g.V().E(eid11)
+ """
+ When iterated to list
+ Then the result should be unordered
+ | result |
+ | e[josh-created->lop] |
+ | e[josh-created->lop] |
+ | e[josh-created->lop] |
+ | e[josh-created->lop] |
+ | e[josh-created->lop] |
+ | e[josh-created->lop] |
+
+ Scenario: g_EX11X_E
+ Given the modern graph
+ And using the parameter eid11 defined as "e[josh-created->lop].id"
+ And the traversal of
+ """
+ g.E(eid11).E()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | result |
+ | e[marko-created->lop] |
+ | e[marko-knows->josh] |
+ | e[marko-knows->vadas] |
+ | e[peter-created->lop] |
+ | e[josh-created->lop] |
+ | e[josh-created->ripple] |
+
+ Scenario: g_V_EXnullX
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().E(null)
+ """
+ When iterated to list
+ Then the result should be empty
+
+ Scenario: g_V_EXlistXnullXX
+ Given the modern graph
+ And using the parameter xx1 defined as "l[null]"
+ And the traversal of
+ """
+ g.V().E(xx1)
+ """
+ When iterated to list
+ Then the result should be empty
+
+ Scenario: g_injectX1X_EX11_nullX
+ Given the modern graph
+ And using the parameter eid11 defined as "e[josh-created->lop].id"
+ And the traversal of
+ """
+ g.inject(1).E(eid11,null)
+ """
+ When iterated to list
+ Then the result should be unordered
+ | result |
+ | e[josh-created->lop] |
+
+ Scenario: g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX
+ Given the empty graph
+ And the graph initializer of
+ """
+ g.addV("person").property("name", "josh").
+ addV("person").property("name", "vadas")
+ """
+ And the traversal of
+ """
+ g.inject(1).coalesce(E().hasLabel("tests"), addE("tests").from(V().has("name","josh")).to(V().has("name","vadas")))
+ """
+ When iterated to list
+ Then the result should have a count of 1
+ And the graph should return 1 for count of "g.E().hasLabel(\"tests\")"
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/EdgeTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/EdgeTest.java
new file mode 100644
index 0000000000..61ca5f6a87
--- /dev/null
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/EdgeTest.java
@@ -0,0 +1,159 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tinkerpop.gremlin.process.traversal.step.map;
+
+import org.apache.tinkerpop.gremlin.FeatureRequirement;
+import org.apache.tinkerpop.gremlin.LoadGraphWith;
+import org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest;
+import org.apache.tinkerpop.gremlin.process.GremlinProcessRunner;
+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.structure.Edge;
+import org.apache.tinkerpop.gremlin.structure.Graph;
+import org.apache.tinkerpop.gremlin.structure.Vertex;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import static org.apache.tinkerpop.gremlin.LoadGraphWith.GraphData.GRATEFUL;
+import static org.apache.tinkerpop.gremlin.LoadGraphWith.GraphData.MODERN;
+import static org.junit.Assert.assertEquals;
+
+/**
+ * @author Valentyn Kahamlyk
+ */
+@RunWith(GremlinProcessRunner.class)
+public abstract class EdgeTest extends AbstractGremlinProcessTest {
+
+ public abstract Traversal<Vertex, Edge> get_g_V_EX11X(final Object e11Id);
+
+ public abstract Traversal<Edge, Edge> get_g_EX11X_E(final Object e11Id);
+
+ public abstract Traversal<Vertex, Edge> get_g_V_EXnullX();
+
+ public abstract Traversal<Integer, Edge> get_g_injectX1X_EX11_nullX(final Object e11Id);
+
+ public abstract Traversal<Integer, Edge> get_g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX();
+
+ @Test
+ @LoadGraphWith(MODERN)
+ public void g_V_EX11X() {
+ final Object edgeId = convertToEdgeId("josh", "created", "lop");
+ final Traversal<Vertex, Edge> traversal = get_g_V_EX11X(edgeId);
+ printTraversalForm(traversal);
+ int counter = 0;
+ final Set<Edge> edges = new HashSet<>();
+ while (traversal.hasNext()) {
+ counter++;
+ edges.add(traversal.next());
+ }
+ assertEquals(6, edges.size());
+ assertEquals(6, counter);
+ }
+
+ @Test
+ @LoadGraphWith(MODERN)
+ public void g_EX11X_E() {
+ final Object edgeId = convertToEdgeId("josh", "created", "lop");
+ final Traversal<Edge, Edge> traversal = get_g_EX11X_E(edgeId);
+ printTraversalForm(traversal);
+ int counter = 0;
+ final Set<Edge> edges = new HashSet<>();
+ while (traversal.hasNext()) {
+ counter++;
+ edges.add(traversal.next());
+ }
+ assertEquals(6, edges.size());
+ assertEquals(6, counter);
+ }
+
+ @Test
+ @LoadGraphWith(MODERN)
+ public void g_V_EXnullX() {
+ final Traversal<Vertex, Edge> traversal = get_g_V_EXnullX();
+ printTraversalForm(traversal);
+ int counter = 0;
+ final Set<Edge> edges = new HashSet<>();
+ while (traversal.hasNext()) {
+ counter++;
+ edges.add(traversal.next());
+ }
+ assertEquals(0, edges.size());
+ assertEquals(0, counter);
+ }
+
+ @Test
+ @LoadGraphWith(MODERN)
+ public void g_injectX1X_EX11_nullX() {
+ final Object edgeId = convertToEdgeId("josh", "created", "lop");
+ final Traversal<Integer, Edge> traversal = get_g_injectX1X_EX11_nullX(edgeId);
+ printTraversalForm(traversal);
+ int counter = 0;
+ final Set<Edge> edges = new HashSet<>();
+ while (traversal.hasNext()) {
+ counter++;
+ edges.add(traversal.next());
+ }
+ assertEquals(1, edges.size());
+ assertEquals(1, counter);
+ }
+
+ @Test
+ @LoadGraphWith(MODERN)
+ public void g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX() {
+ final Traversal<Integer, Edge> traversal = get_g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX();
+ printTraversalForm(traversal);
+ int counter = 0;
+ final Set<Edge> edges = new HashSet<>();
+ while (traversal.hasNext()) {
+ counter++;
+ edges.add(traversal.next());
+ }
+ assertEquals(1, edges.size());
+ assertEquals(1, counter);
+ }
+
+ public static class Traversals extends EdgeTest {
+
+ @Override
+ public Traversal<Vertex, Edge> get_g_V_EX11X(final Object e11Id) { return g.V().E(e11Id); }
+
+ @Override
+ public Traversal<Edge, Edge> get_g_EX11X_E(final Object e11Id) {
+ return g.E(e11Id).E();
+ }
+
+ @Override
+ public Traversal<Vertex, Edge> get_g_V_EXnullX() { return g.V().E(null); }
+
+ @Override
+ public Traversal<Integer, Edge> get_g_injectX1X_EX11_nullX(final Object e11Id) { return g.inject(1).E(e11Id,null); }
+
+ @Override
+ public Traversal<Integer, Edge> get_g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX() {
+ return g.inject(1).coalesce(__.E().hasLabel("tests"), __.addE("tests").from(__.V().has("name","josh")).to(__.V().has("name","vadas")));
+ }
+ }
+}
diff --git a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
index 996455b0a8..48073bcb1a 100644
--- a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
+++ b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/SparkGraphFeatureIntegrateTest.java
@@ -59,7 +59,7 @@ import static org.apache.tinkerpop.gremlin.LoadGraphWith.GraphData;
@RunWith(Cucumber.class)
@CucumberOptions(
- tags = "not @RemoteOnly and not @StepDrop and not @StepV and not @StepIndex and not @StepInject and " +
+ tags = "not @RemoteOnly and not @StepDrop and not @StepV and not @StepE and not @StepIndex and not @StepInject and " +
"not @GraphComputerVerificationOneBulk and not @GraphComputerVerificationStrategyNotSupported and " +
"not @GraphComputerVerificationMidVNotSupported and not @GraphComputerVerificationElementSupported and " +
"not @GraphComputerVerificationInjectionNotSupported and " +
diff --git a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
index 7a02c0ad36..2e2ab7cc57 100644
--- a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
+++ b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/TinkerGraphWorld.java
@@ -116,6 +116,7 @@ public class TinkerGraphWorld implements World {
"@StepDrop",
"@StepInject",
"@StepV",
+ "@StepE",
"@GraphComputerVerificationOneBulk",
"@GraphComputerVerificationStrategyNotSupported",
"@GraphComputerVerificationMidVNotSupported",