MCPcopy Create free account
hub / github.com/holaboss-ai/holaOS / appendUniqueGraphNode

Function appendUniqueGraphNode

runtime/api-server/src/memory-browser.ts:366–376  ·  view source on GitHub ↗
(
  bucket: MemoryBrowserGraphNode[],
  index: Set<string>,
  node: MemoryBrowserGraphNode,
)

Source from the content-addressed store, hash-verified

364}
365
366function appendUniqueGraphNode(
367 bucket: MemoryBrowserGraphNode[],
368 index: Set<string>,
369 node: MemoryBrowserGraphNode,
370): void {
371 if (index.has(node.id)) {
372 return;
373 }
374 index.add(node.id);
375 bucket.push(node);
376}
377
378function appendUniqueGraphEdge(
379 bucket: MemoryBrowserGraphEdge[],

Callers 2

buildInteractionGraphFunction · 0.85
buildIntegrationGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected