MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / link

Function link

graph-ui/src/galaxy/scope-path.ts:23–25  ·  view source on GitHub ↗
(from: number, to: number, edge: GraphEdge, index: number)

Source from the content-addressed store, hash-verified

21 if (roots.has(target)) return [];
22 const next = new Map<number, { to: number; edge: GraphEdge; index: number }[]>();
23 const link = (from: number, to: number, edge: GraphEdge, index: number) => {
24 const list = next.get(from) ?? []; list.push({ to, edge, index }); next.set(from, list);
25 };
26 edges.forEach((edge, index) => {
27 if (edge.source === edge.target) return;
28 if (direction !== 'inbound') link(edge.source, edge.target, edge, index);

Callers 15

mainFunction · 0.85
shortestScopePathFunction · 0.85
toml_replace_atomicFunction · 0.85
jl_replace_atomicFunction · 0.85
text_replace_fileFunction · 0.85
yaml_replace_fileFunction · 0.85
publish_corrupt_backupFunction · 0.85
cbm_rename_noreplaceFunction · 0.85
test_cli.cFile · 0.85
pt_hardlink_caseFunction · 0.85

Calls 2

getMethod · 0.65
pushMethod · 0.45

Tested by 2

pt_hardlink_caseFunction · 0.68
ptr_make_linkFunction · 0.68