mne.spatial_src_connectivity

mne.spatial_src_connectivity(src, dist=None, verbose=None)

Compute connectivity for a source space activation

Parameters:

src : instance of SourceSpaces

The source space.

dist : float, or None

Maximal geodesic distance (in m) between vertices in the source space to consider neighbors. If None, immediate neighbors are extracted from an ico surface.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).

Returns:

connectivity : sparse COO matrix

The connectivity matrix describing the spatial graph structure.