MCPcopy Create free account
hub / github.com/CheMiguel23/MemoryMesh / createEdge

Function createEdge

tests/unit/graph/graphValidator.test.ts:15–20  ·  view source on GitHub ↗
(from: string, to: string, edgeType: string = 'related')

Source from the content-addressed store, hash-verified

13 });
14
15 const createEdge = (from: string, to: string, edgeType: string = 'related'): Edge => ({
16 type: 'edge',
17 from,
18 to,
19 edgeType
20 });
21
22 const createGraph = (nodes: Node[] = [], edges: Edge[] = []): Graph => ({
23 nodes,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected