nws_tools.degrees_und

nws_tools.degrees_und(CIJ)[source]

Compute nodal degrees in an undirected graph

Parameters:

CIJ : NumPy 2darray

Undirected binary/weighted connection matrix

Returns:

deg : NumPy 1darray

Nodal degree vector

See also

degrees_und.m
in the Brain Connectivity Toolbox (BCT) for MATLAB, currently available here
bctpy
An unofficial Python port of the BCT is currently available at the Python Package Index and can be installed using pip.

Notes

This function does not do any error checking and assumes you know what you are doing