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

Function createGraph

packages/graph/src/test/count-star.test.ts:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15} as const satisfies GraphSchema;
16
17function createGraph() {
18 const graph = new Graph({ schema, storage: new InMemoryGraphStorage() });
19 graph.addVertex("Person", { name: "Alice" });
20 graph.addVertex("Person", { name: "Bob" });
21 graph.addVertex("Person", { name: "Charlie" });
22 return graph;
23}
24
25function executeQuery(graph: Graph<typeof schema>, queryString: string): unknown[] {
26 const ast = parse(queryString) as Query;

Callers 1

count-star.test.tsFile · 0.70

Calls 1

addVertexMethod · 0.95

Tested by

no test coverage detected