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

Compute adjacency from distances in a source space.

srcinstance of SourceSpaces

The source space must have distances between vertices computed, such that src[‘dist’] exists and is useful. This can be obtained with a call to mne.setup_source_space() with the add_dist=True option.


Maximal geodesic distance (in m) between vertices in the source space to consider neighbors.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.


The adjacency matrix describing the spatial graph structure.

Examples using mne.spatial_dist_adjacency