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

Method constructor

packages/y-graph-storage/src/YGraph.ts:263–267  ·  view source on GitHub ↗
(graph: YGraph<TSchema>, traversal: TTraversal)

Source from the content-addressed store, hash-verified

261 #traversal: TTraversal;
262 #predicate: QueryPredicate;
263 public constructor(graph: YGraph<TSchema>, traversal: TTraversal) {
264 this.#graph = graph;
265 this.#traversal = traversal;
266 this.#predicate = createPredicatesForTraversalSteps(traversal.steps);
267 }
268
269 public get graph(): YGraph<TSchema> {
270 return this.#graph;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected