Skip to content

NodeMetric

NodeMetric = "degree" | "strength" | "flow" | ((index, graph) => number)

Defined in: network/glyphs.ts:28

A built-in per-node metric d3gl can read directly, or a custom (index, graph) => value accessor. "degree" is the number of incident edges (NetworkGraph.degree); "strength" the weighted degree (NetworkGraph.strength) — both count a self-link once, as Infomap does; "flow" the app-provided NetworkGraph.flow (errors if absent).