MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / push

Function push

ui/src/lib/screens-model.ts:184–190  ·  view source on GitHub ↗
(id: string, d: number)

Source from the content-addressed store, hash-verified

182 const walk = (starts: ReadonlyArray<[string, number]>): void => {
183 const buckets = new Map<number, string[]>();
184 const push = (id: string, d: number): void => {
185 if (depth.has(id)) return;
186 depth.set(id, d);
187 const list = buckets.get(d);
188 if (list) list.push(id);
189 else buckets.set(d, [id]);
190 };
191 let maxStart = 0;
192 for (const [id, d] of starts) {
193 push(id, d);

Callers 1

walkFunction · 0.70

Calls 4

hasMethod · 0.80
pushMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected