mne.spatio_temporal_src_connectivity

mne.spatio_temporal_src_connectivity(src, n_times, dist=None, verbose=None)[source]

Compute connectivity for a source space activation over time.

Parameters:

src : instance of SourceSpaces

The source space.

n_times : int

Number of time instants.

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() and Logging documentation for more).

Returns:

connectivity : sparse COO matrix

The connectivity matrix describing the spatio-temporal graph structure. If N is the number of vertices in the source space, the N first nodes in the graph are the vertices are time 1, the nodes from 2 to 2N are the vertices during time 2, etc.