Search Results for

    Show / Hide Table of Contents

    Class GraphTraversalSource

    A GraphTraversalSource is the primary DSL of the Gremlin traversal machine. It provides access to all the configurations and steps for Turing complete graph computing.

    Inheritance
    System.Object
    GraphTraversalSource
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Gremlin.Net.Process.Traversal
    Assembly: cs.temp.dll.dll
    Syntax
    public class GraphTraversalSource

    Constructors

    GraphTraversalSource()

    Initializes a new instance of the GraphTraversalSource class.

    Declaration
    public GraphTraversalSource()

    GraphTraversalSource(ICollection<ITraversalStrategy>, Bytecode)

    Initializes a new instance of the GraphTraversalSource class.

    Declaration
    public GraphTraversalSource(ICollection<ITraversalStrategy> traversalStrategies, Bytecode bytecode)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<ITraversalStrategy> traversalStrategies

    The traversal strategies associated with this graph traversal source.

    Bytecode bytecode

    The Bytecode associated with the current state of this graph traversal source.

    GraphTraversalSource(ICollection<ITraversalStrategy>, Bytecode, IRemoteConnection)

    Declaration
    public GraphTraversalSource(ICollection<ITraversalStrategy> traversalStrategies, Bytecode bytecode, IRemoteConnection connection)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<ITraversalStrategy> traversalStrategies
    Bytecode bytecode
    IRemoteConnection connection

    Properties

    Bytecode

    Gets or sets the Bytecode associated with the current state of this graph traversal source.

    Declaration
    public Bytecode Bytecode { get; set; }
    Property Value
    Type Description
    Bytecode

    IsSessionBound

    Declaration
    public bool IsSessionBound { get; }
    Property Value
    Type Description
    System.Boolean

    TraversalStrategies

    Gets or sets the traversal strategies associated with this graph traversal source.

    Declaration
    public ICollection<ITraversalStrategy> TraversalStrategies { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<ITraversalStrategy>

    Methods

    AddE(ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the addE step to that traversal.

    Declaration
    public GraphTraversal<Edge, Edge> AddE(ITraversal edgeLabelTraversal)
    Parameters
    Type Name Description
    ITraversal edgeLabelTraversal
    Returns
    Type Description
    GraphTraversal<Edge, Edge>

    AddE(String)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the addE step to that traversal.

    Declaration
    public GraphTraversal<Edge, Edge> AddE(string label)
    Parameters
    Type Name Description
    System.String label
    Returns
    Type Description
    GraphTraversal<Edge, Edge>

    AddV()

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the addV step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> AddV()
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    AddV(ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the addV step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> AddV(ITraversal vertexLabelTraversal)
    Parameters
    Type Name Description
    ITraversal vertexLabelTraversal
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    AddV(String)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the addV step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> AddV(string label)
    Parameters
    Type Name Description
    System.String label
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    Call<S>()

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the call step to that traversal.

    Declaration
    public GraphTraversal<S, S> Call<S>()
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    Call<S>(String)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the call step to that traversal.

    Declaration
    public GraphTraversal<S, S> Call<S>(string service)
    Parameters
    Type Name Description
    System.String service
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    Call<S>(String, ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the call step to that traversal.

    Declaration
    public GraphTraversal<S, S> Call<S>(string service, ITraversal t)
    Parameters
    Type Name Description
    System.String service
    ITraversal t
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    Call<S>(String, IDictionary<Object, Object>)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the call step to that traversal.

    Declaration
    public GraphTraversal<S, S> Call<S>(string service, IDictionary<object, object> m)
    Parameters
    Type Name Description
    System.String service
    System.Collections.Generic.IDictionary<System.Object, System.Object> m
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    Call<S>(String, IDictionary<Object, Object>, ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the call step to that traversal.

    Declaration
    public GraphTraversal<S, S> Call<S>(string service, IDictionary<object, object> m, ITraversal t)
    Parameters
    Type Name Description
    System.String service
    System.Collections.Generic.IDictionary<System.Object, System.Object> m
    ITraversal t
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    E(Object[])

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the E step to that traversal.

    Declaration
    public GraphTraversal<Edge, Edge> E(params object[] edgesIds)
    Parameters
    Type Name Description
    System.Object[] edgesIds
    Returns
    Type Description
    GraphTraversal<Edge, Edge>

    Inject<S>(S[])

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the inject step to that traversal.

    Declaration
    public GraphTraversal<S, S> Inject<S>(params S[] starts)
    Parameters
    Type Name Description
    S[] starts
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    Io<S>(String)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the io step to that traversal.

    Declaration
    public GraphTraversal<S, S> Io<S>(string file)
    Parameters
    Type Name Description
    System.String file
    Returns
    Type Description
    GraphTraversal<S, S>
    Type Parameters
    Name Description
    S

    MergeE(ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the mergeE step to that traversal.

    Declaration
    public GraphTraversal<Edge, Edge> MergeE(ITraversal t)
    Parameters
    Type Name Description
    ITraversal t
    Returns
    Type Description
    GraphTraversal<Edge, Edge>

    MergeE(IDictionary<Object, Object>)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the mergeE step to that traversal.

    Declaration
    public GraphTraversal<Edge, Edge> MergeE(IDictionary<object, object> m)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.Object, System.Object> m
    Returns
    Type Description
    GraphTraversal<Edge, Edge>

    MergeV(ITraversal)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the mergeV step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> MergeV(ITraversal t)
    Parameters
    Type Name Description
    ITraversal t
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    MergeV(IDictionary<Object, Object>)

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the mergeV step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> MergeV(IDictionary<object, object> m)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.Object, System.Object> m
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    Tx()

    Spawns a new object that can then start and stop a transaction.

    Declaration
    public RemoteTransaction Tx()
    Returns
    Type Description
    RemoteTransaction

    The spawned transaction.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Thrown if this traversal source is already bound to a session.

    V(Object[])

    Spawns a GraphTraversal<S, E> off this graph traversal source and adds the V step to that traversal.

    Declaration
    public GraphTraversal<Vertex, Vertex> V(params object[] vertexIds)
    Parameters
    Type Name Description
    System.Object[] vertexIds
    Returns
    Type Description
    GraphTraversal<Vertex, Vertex>

    With(String)

    Declaration
    public GraphTraversalSource With(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    GraphTraversalSource

    With(String, Object)

    Declaration
    public GraphTraversalSource With(string key, object value)
    Parameters
    Type Name Description
    System.String key
    System.Object value
    Returns
    Type Description
    GraphTraversalSource

    WithBindings(Object)

    Declaration
    [Obsolete("Use the Bindings class instead.", false)]
    public GraphTraversalSource WithBindings(object bindings)
    Parameters
    Type Name Description
    System.Object bindings
    Returns
    Type Description
    GraphTraversalSource

    WithBulk(Boolean)

    Declaration
    public GraphTraversalSource WithBulk(bool useBulk)
    Parameters
    Type Name Description
    System.Boolean useBulk
    Returns
    Type Description
    GraphTraversalSource

    WithComputer(String, Nullable<Int32>, String, String, ITraversal, ITraversal, Dictionary<String, Object>)

    Add a GraphComputer class used to execute the traversal. This adds a to the strategies.

    Declaration
    public GraphTraversalSource WithComputer(string graphComputer = null, int? workers = default(int? ), string persist = null, string result = null, ITraversal vertices = null, ITraversal edges = null, Dictionary<string, dynamic> configuration = null)
    Parameters
    Type Name Description
    System.String graphComputer
    System.Nullable<System.Int32> workers
    System.String persist
    System.String result
    ITraversal vertices
    ITraversal edges
    System.Collections.Generic.Dictionary<System.String, System.Object> configuration
    Returns
    Type Description
    GraphTraversalSource

    WithoutStrategies(Type[])

    Declaration
    public GraphTraversalSource WithoutStrategies(params Type[] traversalStrategyClasses)
    Parameters
    Type Name Description
    System.Type[] traversalStrategyClasses
    Returns
    Type Description
    GraphTraversalSource

    WithPath()

    Declaration
    public GraphTraversalSource WithPath()
    Returns
    Type Description
    GraphTraversalSource

    WithRemote(IRemoteConnection)

    Configures the GraphTraversalSource as a "remote" to issue the GraphTraversal<S, E> for execution elsewhere.

    Declaration
    public GraphTraversalSource WithRemote(IRemoteConnection remoteConnection)
    Parameters
    Type Name Description
    IRemoteConnection remoteConnection

    The instance to use to submit the GraphTraversal<S, E>.

    Returns
    Type Description
    GraphTraversalSource

    A GraphTraversalSource configured to use the provided .

    WithSack(ISupplier)

    Declaration
    public GraphTraversalSource WithSack(ISupplier initialValue)
    Parameters
    Type Name Description
    ISupplier initialValue
    Returns
    Type Description
    GraphTraversalSource

    WithSack(ISupplier, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSack(ISupplier initialValue, IBinaryOperator mergeOperator)
    Parameters
    Type Name Description
    ISupplier initialValue
    IBinaryOperator mergeOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSack(ISupplier, IUnaryOperator)

    Declaration
    public GraphTraversalSource WithSack(ISupplier initialValue, IUnaryOperator splitOperator)
    Parameters
    Type Name Description
    ISupplier initialValue
    IUnaryOperator splitOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSack(ISupplier, IUnaryOperator, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSack(ISupplier initialValue, IUnaryOperator splitOperator, IBinaryOperator mergeOperator)
    Parameters
    Type Name Description
    ISupplier initialValue
    IUnaryOperator splitOperator
    IBinaryOperator mergeOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSack(Object)

    Declaration
    public GraphTraversalSource WithSack(object initialValue)
    Parameters
    Type Name Description
    System.Object initialValue
    Returns
    Type Description
    GraphTraversalSource

    WithSack(Object, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSack(object initialValue, IBinaryOperator mergeOperator)
    Parameters
    Type Name Description
    System.Object initialValue
    IBinaryOperator mergeOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSack(Object, IUnaryOperator)

    Declaration
    public GraphTraversalSource WithSack(object initialValue, IUnaryOperator splitOperator)
    Parameters
    Type Name Description
    System.Object initialValue
    IUnaryOperator splitOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSack(Object, IUnaryOperator, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSack(object initialValue, IUnaryOperator splitOperator, IBinaryOperator mergeOperator)
    Parameters
    Type Name Description
    System.Object initialValue
    IUnaryOperator splitOperator
    IBinaryOperator mergeOperator
    Returns
    Type Description
    GraphTraversalSource

    WithSideEffect(String, ISupplier)

    Declaration
    public GraphTraversalSource WithSideEffect(string key, ISupplier initialValue)
    Parameters
    Type Name Description
    System.String key
    ISupplier initialValue
    Returns
    Type Description
    GraphTraversalSource

    WithSideEffect(String, ISupplier, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSideEffect(string key, ISupplier initialValue, IBinaryOperator reducer)
    Parameters
    Type Name Description
    System.String key
    ISupplier initialValue
    IBinaryOperator reducer
    Returns
    Type Description
    GraphTraversalSource

    WithSideEffect(String, Object)

    Declaration
    public GraphTraversalSource WithSideEffect(string key, object initialValue)
    Parameters
    Type Name Description
    System.String key
    System.Object initialValue
    Returns
    Type Description
    GraphTraversalSource

    WithSideEffect(String, Object, IBinaryOperator)

    Declaration
    public GraphTraversalSource WithSideEffect(string key, object initialValue, IBinaryOperator reducer)
    Parameters
    Type Name Description
    System.String key
    System.Object initialValue
    IBinaryOperator reducer
    Returns
    Type Description
    GraphTraversalSource

    WithStrategies(ITraversalStrategy[])

    Declaration
    public GraphTraversalSource WithStrategies(params ITraversalStrategy[] traversalStrategies)
    Parameters
    Type Name Description
    ITraversalStrategy[] traversalStrategies
    Returns
    Type Description
    GraphTraversalSource
    In This Article
    Back to top Copyright © 2018 The Apache Software Foundation