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

Function layering

ui/src/lib/program-model.ts:418–419  ·  view source on GitHub ↗
(ids: string[])

Source from the content-addressed store, hash-verified

416 // Row 0 is the bottom, so the anchor — nothing happens before it — is on top.
417 const deepest = Math.max(0, ...graph.depth.values());
418 const layering = (ids: string[]): Map<string, number> =>
419 new Map(ids.map((id) => [id, deepest - (graph.depth.get(id) ?? deepest)]));
420
421 const layout: MapLayout = buildMapLayout(
422 { modules, links },

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected