netneurotools.metrics.communicability_wei

netneurotools.metrics.communicability_wei(adjacency)[source]

Compute the communicability of pairs of nodes in adjacency.

Parameters:

adjacency ((N, N) array_like) – Weighted, direct/undirected connection weight/length array

Returns:

cmc – Symmetric array representing communicability of nodes {i, j}

Return type:

(N, N) numpy.ndarray

References

Crofts, J. J., & Higham, D. J. (2009). A weighted communicability measure applied to complex brain networks. Journal of the Royal Society Interface, 6(33), 411-414.

Examples

>>> from netneurotools import metrics
>>> A = np.array([[2, 0, 3], [0, 2, 1], [0.5, 0, 1]])
>>> Q = metrics.communicability_wei(A)
>>> Q
array([[0.        , 0.        , 1.93581903],
       [0.07810379, 0.        , 0.94712177],
       [0.32263651, 0.        , 0.        ]])