Network.degree_matrix
- Network.degree_matrix(rtype='array')[source]
Creates a degree matrix from a Network datastructure.
- Parameters:
- rtypeLiteral[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional
Format of the result.
- Returns:
- array_like
Constructed degree matrix.