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

Method constructor

packages/graph/src/AsyncGraph.ts:82–89  ·  view source on GitHub ↗
(config: AsyncGraphConfig<TSchema>)

Source from the content-addressed store, hash-verified

80 #storage: AsyncGraphStorage;
81 #graph: Graph<TSchema>;
82 public constructor(config: AsyncGraphConfig<TSchema>) {
83 this.#config = config;
84 this.#storage = new AsyncGraphStorage();
85 this.#graph = new Graph({
86 schema: config.schema,
87 storage: this.#storage,
88 });
89 }
90
91 public async *query<const TPath>(
92 query: (g: GraphTraversal<TSchema>) => Traversal<TSchema, TPath>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected