MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / graphWeight

Function graphWeight

deployments/desktop/static/desktop.js:3231–3235  ·  view source on GitHub ↗
(edge)

Source from the content-addressed store, hash-verified

3229 }
3230
3231 function graphWeight(edge) {
3232 const weight = Number(edge?.weight);
3233 if (!Number.isFinite(weight)) return 1;
3234 return Math.max(0.08, Math.min(1.6, weight));
3235 }
3236
3237 function clamp(value, min, max) {
3238 return Math.max(min, Math.min(max, value));

Callers 4

graphDegreeMapFunction · 0.85
renderWikiGraphFunction · 0.85
relatedWikiNodesFunction · 0.85
renderWikiRelationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected