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

Function layering

ui/src/lib/steps-model.ts:479–480  ·  view source on GitHub ↗
(ids: string[])

Source from the content-addressed store, hash-verified

477 const depthOf = new Map(payload.steps.map((s) => [s.id, s.depth]));
478 const deepest = Math.max(0, ...payload.steps.map((s) => s.depth));
479 const layering = (ids: string[]): Map<string, number> =>
480 new Map(ids.map((id) => [id, deepest - (depthOf.get(id) ?? deepest)]));
481
482 layout = buildMapLayout(
483 { modules, links },

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected