MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / nodeRadius

Function nodeRadius

dashboard/graph/src/simulation.ts:52–54  ·  view source on GitHub ↗
(degree: number)

Source from the content-addressed store, hash-verified

50const MAX_SPEED = 26;
51
52export function nodeRadius(degree: number): number {
53 return 7 + Math.min(13, Math.sqrt(Math.max(0, degree)) * 2.2);
54}
55
56/**
57 * Builds (or rebuilds) a simulation, preserving positions of nodes that

Callers 1

createSimulationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected