gremlin 3.5.0 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +154 -0
- package/.prettierrc.js +29 -0
- package/Gruntfile.js +15 -16
- package/NOTICE +1 -1
- package/doc/AnonymousTraversalSource.html +7 -7
- package/doc/Authenticator.html +3 -3
- package/doc/Bytecode.html +249 -5
- package/doc/Client.html +139 -65
- package/doc/Connection.html +90 -6
- package/doc/DriverRemoteConnection.html +380 -8
- package/doc/EdgeLabelVerificationStrategy.html +3 -3
- package/doc/Graph.html +2 -2
- package/doc/GraphSON2Reader.html +4 -4
- package/doc/GraphSON2Writer.html +3 -3
- package/doc/GraphSON3Reader.html +3 -3
- package/doc/GraphSON3Writer.html +3 -3
- package/doc/GraphTraversal.html +107 -107
- package/doc/GraphTraversalSource.html +130 -19
- package/doc/HaltedTraverserStrategy.html +3 -3
- package/doc/MatchAlgorithmStrategy.html +3 -3
- package/doc/P.html +13 -13
- package/doc/PartitionStrategy.html +3 -3
- package/doc/Path.html +2 -2
- package/doc/PlainTextSaslAuthenticator.html +2 -2
- package/doc/ProductiveByStrategy.html +288 -0
- package/doc/RemoteConnection.html +484 -10
- package/doc/RemoteStrategy.html +4 -4
- package/doc/RemoteTraversal.html +3 -3
- package/doc/ReservedKeysVerificationStrategy.html +3 -3
- package/doc/ResponseError.html +3 -3
- package/doc/ResultSet.html +8 -8
- package/doc/SaslAuthenticator.html +2 -2
- package/doc/SaslMechanismBase.html +3 -3
- package/doc/SaslMechanismPlain.html +6 -6
- package/doc/{GraphSONReader.html → SeedStrategy.html} +12 -15
- package/doc/SubgraphStrategy.html +3 -3
- package/doc/TextP.html +10 -10
- package/doc/Transaction.html +655 -0
- package/doc/Translator.html +200 -6
- package/doc/TraversalStrategies.html +137 -4
- package/doc/TraversalStrategy.html +4 -4
- package/doc/TypeSerializer.html +2 -2
- package/doc/driver_auth_authenticator.js.html +4 -4
- package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +3 -3
- package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +26 -17
- package/doc/driver_auth_plain-text-sasl-authenticator.js.html +7 -7
- package/doc/driver_auth_sasl-authenticator.js.html +3 -3
- package/doc/driver_client.js.html +75 -25
- package/doc/driver_connection.js.html +108 -89
- package/doc/driver_driver-remote-connection.js.html +40 -9
- package/doc/driver_remote-connection.js.html +47 -6
- package/doc/driver_response-error.js.html +5 -4
- package/doc/driver_result-set.js.html +4 -4
- package/doc/global.html +200 -3
- package/doc/index.html +2 -2
- package/doc/process_anonymous-traversal.js.html +5 -5
- package/doc/process_bytecode.js.html +32 -7
- package/doc/process_graph-traversal.js.html +213 -143
- package/doc/process_transaction.js.html +143 -0
- package/doc/process_translator.js.html +58 -39
- package/doc/process_traversal-strategy.js.html +79 -52
- package/doc/process_traversal.js.html +101 -108
- package/doc/structure_graph.js.html +7 -7
- package/doc/structure_io_graph-serializer.js.html +65 -18
- package/doc/structure_io_type-serializers.js.html +86 -89
- package/index.js +5 -5
- package/lib/driver/auth/authenticator.js +2 -2
- package/lib/driver/auth/mechanisms/sasl-mechanism-base.js +1 -1
- package/lib/driver/auth/mechanisms/sasl-mechanism-plain.js +24 -15
- package/lib/driver/auth/plain-text-sasl-authenticator.js +5 -5
- package/lib/driver/auth/sasl-authenticator.js +1 -1
- package/lib/driver/client.js +73 -23
- package/lib/driver/connection.js +106 -87
- package/lib/driver/driver-remote-connection.js +38 -7
- package/lib/driver/remote-connection.js +45 -4
- package/lib/driver/response-error.js +2 -2
- package/lib/driver/result-set.js +1 -2
- package/lib/process/anonymous-traversal.js +2 -3
- package/lib/process/bytecode.js +30 -5
- package/lib/process/graph-traversal.js +210 -141
- package/lib/process/transaction.js +92 -0
- package/lib/process/translator.js +55 -37
- package/lib/process/traversal-strategy.js +76 -50
- package/lib/process/traversal.js +99 -106
- package/lib/structure/graph.js +5 -5
- package/lib/structure/io/graph-serializer.js +62 -16
- package/lib/structure/io/type-serializers.js +84 -87
- package/lib/utils.js +15 -10
- package/package.json +11 -5
- package/doc/GraphSONWriter.html +0 -436
- package/gremlin-javascript.iml +0 -9
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
/**
|
|
49
49
|
* @author Jorge Bay Gondra
|
|
50
50
|
*/
|
|
51
|
+
|
|
51
52
|
'use strict';
|
|
52
53
|
|
|
53
|
-
const utils = require('../utils');
|
|
54
54
|
const itemDone = Object.freeze({ value: null, done: true });
|
|
55
55
|
const asyncIteratorSymbol = Symbol.asyncIterator || Symbol('@@asyncIterator');
|
|
56
56
|
|
|
@@ -91,19 +91,21 @@ class Traversal {
|
|
|
91
91
|
}
|
|
92
92
|
return result;
|
|
93
93
|
});
|
|
94
|
-
}
|
|
94
|
+
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Determines if there are any more items to iterate from the traversal.
|
|
98
98
|
* @returns {Promise.<boolean>}
|
|
99
99
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
hasNext() {
|
|
101
|
+
return this._applyStrategies().then(
|
|
102
|
+
() =>
|
|
103
|
+
this.traversers &&
|
|
104
|
+
this.traversers.length > 0 &&
|
|
105
|
+
this._traversersIteratorIndex < this.traversers.length &&
|
|
106
|
+
this.traversers[this._traversersIteratorIndex].bulk > 0,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
107
109
|
|
|
108
110
|
/**
|
|
109
111
|
* Iterates all Traverser instances in the traversal.
|
|
@@ -114,6 +116,7 @@ class Traversal {
|
|
|
114
116
|
return this._applyStrategies().then(() => {
|
|
115
117
|
let it;
|
|
116
118
|
while ((it = this._getNext()) && !it.done) {
|
|
119
|
+
//
|
|
117
120
|
}
|
|
118
121
|
});
|
|
119
122
|
}
|
|
@@ -133,7 +136,7 @@ class Traversal {
|
|
|
133
136
|
*/
|
|
134
137
|
_getNext() {
|
|
135
138
|
while (this.traversers && this._traversersIteratorIndex < this.traversers.length) {
|
|
136
|
-
|
|
139
|
+
const traverser = this.traversers[this._traversersIteratorIndex];
|
|
137
140
|
if (traverser.bulk > 0) {
|
|
138
141
|
traverser.bulk--;
|
|
139
142
|
return { value: traverser.object, done: false };
|
|
@@ -148,14 +151,14 @@ class Traversal {
|
|
|
148
151
|
// Apply strategies only once
|
|
149
152
|
return this._traversalStrategiesPromise;
|
|
150
153
|
}
|
|
151
|
-
return this._traversalStrategiesPromise = this.traversalStrategies.applyStrategies(this);
|
|
154
|
+
return (this._traversalStrategiesPromise = this.traversalStrategies.applyStrategies(this));
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
/**
|
|
155
158
|
* Returns step instructions during JSON serialization
|
|
156
159
|
* @returns {Array}
|
|
157
160
|
*/
|
|
158
|
-
toJSON(){
|
|
161
|
+
toJSON() {
|
|
159
162
|
return this.bytecode.stepInstructions;
|
|
160
163
|
}
|
|
161
164
|
|
|
@@ -165,106 +168,103 @@ class Traversal {
|
|
|
165
168
|
*/
|
|
166
169
|
toString() {
|
|
167
170
|
return this.bytecode.toString();
|
|
168
|
-
}
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
|
|
172
174
|
class IO {
|
|
175
|
+
static get graphml() {
|
|
176
|
+
return 'graphml';
|
|
177
|
+
}
|
|
173
178
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
static get graphson() {
|
|
179
|
-
return "graphson"
|
|
180
|
-
}
|
|
179
|
+
static get graphson() {
|
|
180
|
+
return 'graphson';
|
|
181
|
+
}
|
|
181
182
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
static get gryo() {
|
|
184
|
+
return 'gryo';
|
|
185
|
+
}
|
|
185
186
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
static get reader() {
|
|
188
|
+
return '~tinkerpop.io.reader';
|
|
189
|
+
}
|
|
189
190
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
static get registry() {
|
|
192
|
+
return '~tinkerpop.io.registry';
|
|
193
|
+
}
|
|
193
194
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
static get writer() {
|
|
196
|
+
return '~tinkerpop.io.writer';
|
|
197
|
+
}
|
|
197
198
|
}
|
|
198
199
|
|
|
200
|
+
// eslint-disable-next-line no-unused-vars
|
|
199
201
|
class ConnectedComponent {
|
|
202
|
+
static get component() {
|
|
203
|
+
return 'gremlin.connectedComponentVertexProgram.component';
|
|
204
|
+
}
|
|
200
205
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
static get edges() {
|
|
206
|
-
return "~tinkerpop.connectedComponent.edges"
|
|
207
|
-
}
|
|
206
|
+
static get edges() {
|
|
207
|
+
return '~tinkerpop.connectedComponent.edges';
|
|
208
|
+
}
|
|
208
209
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
static get propertyName() {
|
|
211
|
+
return '~tinkerpop.connectedComponent.propertyName';
|
|
212
|
+
}
|
|
212
213
|
}
|
|
213
214
|
|
|
215
|
+
// eslint-disable-next-line no-unused-vars
|
|
214
216
|
class ShortestPath {
|
|
217
|
+
static get distance() {
|
|
218
|
+
return '~tinkerpop.shortestPath.distance';
|
|
219
|
+
}
|
|
215
220
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
static get edges() {
|
|
221
|
-
return "~tinkerpop.shortestPath.edges"
|
|
222
|
-
}
|
|
221
|
+
static get edges() {
|
|
222
|
+
return '~tinkerpop.shortestPath.edges';
|
|
223
|
+
}
|
|
223
224
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
static get includeEdges() {
|
|
226
|
+
return '~tinkerpop.shortestPath.includeEdges';
|
|
227
|
+
}
|
|
227
228
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
static get maxDistance() {
|
|
230
|
+
return '~tinkerpop.shortestPath.maxDistance';
|
|
231
|
+
}
|
|
231
232
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
static get target() {
|
|
234
|
+
return '~tinkerpop.shortestPath.target';
|
|
235
|
+
}
|
|
235
236
|
}
|
|
236
237
|
|
|
238
|
+
// eslint-disable-next-line no-unused-vars
|
|
237
239
|
class PageRank {
|
|
240
|
+
static get edges() {
|
|
241
|
+
return '~tinkerpop.pageRank.edges';
|
|
242
|
+
}
|
|
238
243
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
static get propertyName() {
|
|
244
|
-
return "~tinkerpop.pageRank.propertyName"
|
|
245
|
-
}
|
|
244
|
+
static get propertyName() {
|
|
245
|
+
return '~tinkerpop.pageRank.propertyName';
|
|
246
|
+
}
|
|
246
247
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
static get times() {
|
|
249
|
+
return '~tinkerpop.pageRank.times';
|
|
250
|
+
}
|
|
250
251
|
}
|
|
251
252
|
|
|
253
|
+
// eslint-disable-next-line no-unused-vars
|
|
252
254
|
class PeerPressure {
|
|
255
|
+
static get edges() {
|
|
256
|
+
return '~tinkerpop.peerPressure.edges';
|
|
257
|
+
}
|
|
253
258
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
static get propertyName() {
|
|
259
|
-
return "~tinkerpop.peerPressure.propertyName"
|
|
260
|
-
}
|
|
259
|
+
static get propertyName() {
|
|
260
|
+
return '~tinkerpop.peerPressure.propertyName';
|
|
261
|
+
}
|
|
261
262
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
static get times() {
|
|
264
|
+
return '~tinkerpop.peerPressure.times';
|
|
265
|
+
}
|
|
265
266
|
}
|
|
266
267
|
|
|
267
|
-
|
|
268
268
|
class P {
|
|
269
269
|
/**
|
|
270
270
|
* Represents an operation.
|
|
@@ -281,16 +281,16 @@ class P {
|
|
|
281
281
|
* @returns {string}
|
|
282
282
|
*/
|
|
283
283
|
toString() {
|
|
284
|
-
function formatValue(value){
|
|
284
|
+
function formatValue(value) {
|
|
285
285
|
if (Array.isArray(value)) {
|
|
286
|
-
|
|
286
|
+
const acc = [];
|
|
287
287
|
for (const item of value) {
|
|
288
288
|
acc.push(formatValue(item));
|
|
289
289
|
}
|
|
290
290
|
return acc;
|
|
291
291
|
}
|
|
292
|
-
if (value && typeof value ===
|
|
293
|
-
return
|
|
292
|
+
if (value && typeof value === 'string') {
|
|
293
|
+
return `'${value}'`;
|
|
294
294
|
}
|
|
295
295
|
return value;
|
|
296
296
|
}
|
|
@@ -311,21 +311,18 @@ class P {
|
|
|
311
311
|
|
|
312
312
|
static within(...args) {
|
|
313
313
|
if (args.length === 1 && Array.isArray(args[0])) {
|
|
314
|
-
return new P(
|
|
315
|
-
} else {
|
|
316
|
-
return new P("within", args, null);
|
|
314
|
+
return new P('within', args[0], null);
|
|
317
315
|
}
|
|
316
|
+
return new P('within', args, null);
|
|
318
317
|
}
|
|
319
318
|
|
|
320
319
|
static without(...args) {
|
|
321
320
|
if (args.length === 1 && Array.isArray(args[0])) {
|
|
322
|
-
return new P(
|
|
323
|
-
} else {
|
|
324
|
-
return new P("without", args, null);
|
|
321
|
+
return new P('without', args[0], null);
|
|
325
322
|
}
|
|
323
|
+
return new P('without', args, null);
|
|
326
324
|
}
|
|
327
325
|
|
|
328
|
-
|
|
329
326
|
/** @param {...Object} args */
|
|
330
327
|
static between(...args) {
|
|
331
328
|
return createP('between', args);
|
|
@@ -380,12 +377,11 @@ class P {
|
|
|
380
377
|
static test(...args) {
|
|
381
378
|
return createP('test', args);
|
|
382
379
|
}
|
|
383
|
-
|
|
384
380
|
}
|
|
385
381
|
|
|
386
382
|
function createP(operator, args) {
|
|
387
383
|
args.unshift(null, operator);
|
|
388
|
-
return new (Function.prototype.bind.apply(P, args));
|
|
384
|
+
return new (Function.prototype.bind.apply(P, args))();
|
|
389
385
|
}
|
|
390
386
|
|
|
391
387
|
class TextP {
|
|
@@ -404,9 +400,9 @@ class TextP {
|
|
|
404
400
|
* @returns {string}
|
|
405
401
|
*/
|
|
406
402
|
toString() {
|
|
407
|
-
function formatValue(value){
|
|
408
|
-
if (value && typeof value ===
|
|
409
|
-
return
|
|
403
|
+
function formatValue(value) {
|
|
404
|
+
if (value && typeof value === 'string') {
|
|
405
|
+
return `'${value}'`;
|
|
410
406
|
}
|
|
411
407
|
return value;
|
|
412
408
|
}
|
|
@@ -454,12 +450,11 @@ class TextP {
|
|
|
454
450
|
static startingWith(...args) {
|
|
455
451
|
return createTextP('startingWith', args);
|
|
456
452
|
}
|
|
457
|
-
|
|
458
453
|
}
|
|
459
454
|
|
|
460
455
|
function createTextP(operator, args) {
|
|
461
456
|
args.unshift(null, operator);
|
|
462
|
-
return new (Function.prototype.bind.apply(TextP, args));
|
|
457
|
+
return new (Function.prototype.bind.apply(TextP, args))();
|
|
463
458
|
}
|
|
464
459
|
|
|
465
460
|
class Traverser {
|
|
@@ -469,26 +464,24 @@ class Traverser {
|
|
|
469
464
|
}
|
|
470
465
|
}
|
|
471
466
|
|
|
472
|
-
class TraversalSideEffects {
|
|
473
|
-
|
|
474
|
-
}
|
|
467
|
+
class TraversalSideEffects {}
|
|
475
468
|
|
|
476
469
|
const withOptions = {
|
|
477
|
-
tokens:
|
|
470
|
+
tokens: '~tinkerpop.valueMap.tokens',
|
|
478
471
|
none: 0,
|
|
479
472
|
ids: 1,
|
|
480
473
|
labels: 2,
|
|
481
474
|
keys: 4,
|
|
482
475
|
values: 8,
|
|
483
476
|
all: 15,
|
|
484
|
-
indexer:
|
|
477
|
+
indexer: '~tinkerpop.index.indexer',
|
|
485
478
|
list: 0,
|
|
486
|
-
map: 1
|
|
479
|
+
map: 1,
|
|
487
480
|
};
|
|
488
481
|
|
|
489
482
|
function toEnum(typeName, keys) {
|
|
490
483
|
const result = {};
|
|
491
|
-
keys.split(' ').forEach(k => {
|
|
484
|
+
keys.split(' ').forEach((k) => {
|
|
492
485
|
let jsKey = k;
|
|
493
486
|
if (jsKey === jsKey.toUpperCase()) {
|
|
494
487
|
jsKey = jsKey.toLowerCase();
|
|
@@ -529,7 +522,7 @@ module.exports = {
|
|
|
529
522
|
pick: toEnum('Pick', 'any none'),
|
|
530
523
|
pop: toEnum('Pop', 'all first last mixed'),
|
|
531
524
|
scope: toEnum('Scope', 'global local'),
|
|
532
|
-
t: toEnum('T', 'id key label value')
|
|
525
|
+
t: toEnum('T', 'id key label value'),
|
|
533
526
|
};
|
|
534
527
|
</code></pre>
|
|
535
528
|
</article>
|
|
@@ -541,13 +534,13 @@ module.exports = {
|
|
|
541
534
|
</div>
|
|
542
535
|
|
|
543
536
|
<nav>
|
|
544
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
537
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
545
538
|
</nav>
|
|
546
539
|
|
|
547
540
|
<br class="clear">
|
|
548
541
|
|
|
549
542
|
<footer>
|
|
550
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
543
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
551
544
|
</footer>
|
|
552
545
|
|
|
553
546
|
<script> prettyPrint(); </script>
|
|
@@ -85,7 +85,7 @@ class Element {
|
|
|
85
85
|
* @returns {boolean}
|
|
86
86
|
*/
|
|
87
87
|
equals(other) {
|
|
88
|
-
return
|
|
88
|
+
return other instanceof Element && this.id === other.id;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -147,7 +147,7 @@ class Property {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
equals(other) {
|
|
150
|
-
return
|
|
150
|
+
return other instanceof Property && this.key === other.key && this.value === other.value;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -164,7 +164,7 @@ class Path {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
toString() {
|
|
167
|
-
return `path[${(this.objects || []).join(
|
|
167
|
+
return `path[${(this.objects || []).join(', ')}]`;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
equals(other) {
|
|
@@ -190,7 +190,7 @@ function areEqual(obj1, obj2) {
|
|
|
190
190
|
return false;
|
|
191
191
|
}
|
|
192
192
|
for (let i = 0; i < obj1.length; i++) {
|
|
193
|
-
if (!areEqual(obj1[i], obj2[i])){
|
|
193
|
+
if (!areEqual(obj1[i], obj2[i])) {
|
|
194
194
|
return false;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -214,7 +214,7 @@ module.exports = {
|
|
|
214
214
|
Path,
|
|
215
215
|
Property,
|
|
216
216
|
Vertex,
|
|
217
|
-
VertexProperty
|
|
217
|
+
VertexProperty,
|
|
218
218
|
};
|
|
219
219
|
</code></pre>
|
|
220
220
|
</article>
|
|
@@ -226,13 +226,13 @@ module.exports = {
|
|
|
226
226
|
</div>
|
|
227
227
|
|
|
228
228
|
<nav>
|
|
229
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
229
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
230
230
|
</nav>
|
|
231
231
|
|
|
232
232
|
<br class="clear">
|
|
233
233
|
|
|
234
234
|
<footer>
|
|
235
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
235
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
236
236
|
</footer>
|
|
237
237
|
|
|
238
238
|
<script> prettyPrint(); </script>
|