Table of Contents

Interface ITraversalStrategy

Namespace
Gremlin.Net.Process.Traversal
Assembly
Gremlin.Net.dll

A ITraversalStrategy defines a particular atomic operation for mutating a ITraversal prior to its evaluation.

public interface ITraversalStrategy

Methods

ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd>, CancellationToken)

Applies the strategy to the given ITraversal asynchronously.

Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal, CancellationToken cancellationToken = default)

Parameters

traversal ITraversal<TStart, TEnd>

The ITraversal the strategy should be applied to.

cancellationToken CancellationToken

The token to cancel the operation. The default value is None.

Returns

Task

Type Parameters

TStart
TEnd

Apply<TStart, TEnd>(ITraversal<TStart, TEnd>)

Applies the strategy to the given ITraversal.

void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)

Parameters

traversal ITraversal<TStart, TEnd>

The ITraversal the strategy should be applied to.

Type Parameters

TStart
TEnd