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

Compute adjacency for a source space activation over time.

srcinstance of SourceSpaces

The source space. It can be a surface source space or a volume source space.


Number of time instants.

distfloat, 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.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.


The adjacency 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.