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

Function weightOf

ui/src/lib/map-model.ts:319–319  ·  view source on GitHub ↗
(link: WireMapLink)

Source from the content-addressed store, hash-verified

317 const useDeclared =
318 links.length > 0 && declaredLinks.length >= links.length * DECLARED_BASIS_COVERAGE;
319 const weightOf = (link: WireMapLink): number => (useDeclared ? link.declared : link.count);
320 const layeringLinks = useDeclared ? declaredLinks : links;
321
322 // --- 2-cycle break, on the layering graph only ---------------------------

Callers 1

buildMapLayoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected