brainconn.degree
.jdegree¶
-
jdegree
(CIJ)[source]¶ This function returns a matrix in which the value of each element (u,v) corresponds to the number of nodes that have u outgoing connections and v incoming connections.
Parameters: CIJ (NxN numpy.ndarray
) – directed binary/weighted connnection matrixReturns: - J (ZxZ
numpy.ndarray
) – joint degree distribution matrix (shifted by one, replicates matlab one-based-indexing) - J_od (int) – number of vertices with out_degree>in_degree
- J_id (int) – number of vertices with in_degree>out_degree
- J_bl (int) – number of vertices with in_degree==out_degree
Notes
Weights are discarded.
- J (ZxZ