MCPcopy Create free account
hub / github.com/codemix/graph / range

Method range

packages/graph/src/Traversals.ts:1130–1135  ·  view source on GitHub ↗

* Slice the vertices in the traversal. * @param start The index to start slicing * @param end The index to end slicing

(start: number, end: number)

Source from the content-addressed store, hash-verified

1128 * @param end The index to end slicing
1129 */
1130 public range(start: number, end: number) {
1131 return new VertexTraversal<TSchema, TPath>(this.graph, [
1132 ...this.steps,
1133 new RangeStep({ start, end }),
1134 ]);
1135 }
1136
1137 /**
1138 * Count the number of vertices in the traversal.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected