brainconn.distance.efficiency_bin

efficiency_bin(G, local=False)[source]

The global efficiency is the average of inverse shortest path length, and is inversely related to the characteristic path length.

The local efficiency is the global efficiency computed on the neighborhood of the node, and is related to the clustering coefficient.

Parameters:
  • A (NxN numpy.ndarray) – binary undirected connection matrix
  • local (bool) – If True, computes local efficiency instead of global efficiency. Default value = False.
Returns:

  • Eglob (float) – global efficiency, only if local=False
  • Eloc (Nx1 numpy.ndarray) – local efficiency, only if local=True