netneurotools.metrics.degrees_und
- netneurotools.metrics.degrees_und(W)[source]
Compute the degree of each node in W.
- Parameters:
W ((N, N) array_like) – Unweighted, undirected connection weight array. Weighted array will be binarized prior to calculation. Directedness will be ignored (out degree / row sum taken).
- Returns:
deg – Degree of each node in W
- Return type:
(N,) numpy.ndarray