示例#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);
            }
        }
示例#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();
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphTraversalSource"/> class.
 /// </summary>
 public GraphTraversalSource()
 {
     _graphTraversalSource = AnonymousTraversalSource.Traversal();
     _graphTraversalSource.Bytecode.AddSource("g");
 }