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.
weighted
value
graph
GraphLike
options
MetricOptions
object
Degrees