Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GraphTraversalSource"/> class.
        /// </summary>
        public GraphTraversalSource(IRemoteConnection remote = null)
        {
            _graphTraversalSource = AnonymousTraversalSource.Traversal();

            _graphTraversalSource.Bytecode.AddSource("g");

            if (remote != null)
            {
                _graphTraversalSource = _graphTraversalSource.WithRemote(remote);
            }
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphTraversalSource"/> class.
 /// </summary>
 public GraphTraversalSource()
 {
     _graphTraversalSource = new Graph().Traversal();
     _graphTraversalSource.Bytecode.AddSource("g");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphTraversalSource"/> class.
 /// </summary>
 public GraphTraversalSource()
 {
     _graphTraversalSource = new Graph().Traversal();
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphTraversalSource"/> class.
 /// </summary>
 public GraphTraversalSource()
 {
     _graphTraversalSource = AnonymousTraversalSource.Traversal();
     _graphTraversalSource.Bytecode.AddSource("g");
 }