brainconn.degree.degrees_dir¶
-
degrees_dir(CIJ)[source]¶ Node degree is the number of links connected to the node. The indegree is the number of inward links and the outdegree is the number of outward links.
Parameters: CIJ (NxN numpy.ndarray) – directed binary/weighted connection matrixReturns: - in_degree (Nx1
numpy.ndarray) – node in-degree - out_degree (Nx1
numpy.ndarray) – node out-degree - deg (Nx1
numpy.ndarray) – node degree (in-degree + out-degree)
Notes
- Inputs are assumed to be on the columns of the CIJ matrix.
- Weight information is discarded.
- in_degree (Nx1