Skip to content

Function: degrees() ​

ts
function degrees(graph, options?): Degrees;

The degree of every node. With weighted, each link counts as its value (the node's strength). Links with an end that is not a node are skipped.

Parameters ​

ParameterType
graphGraphLike
optionsMetricOptions & object

Returns ​

Degrees

Released under the MIT License.