mne.label_adjacency#
- mne.label_adjacency(labels, src)[source]#
Compute adjacency between labels.
Two labels are considered adjacent if one of their vertices are adjacent in the source space.
- Parameters:
- labels
listofmne.Label The labels between which to compute adjacency.
- src
mne.SourceSpaces The source space on which the labels are defined.
- labels
- Returns:
- label_adjacency
scipy.sparse.coo_matrix A sparse adjacency matrix containing a 1 for labels that are adjacent and 0 otherwise.
- label_adjacency
See also
Notes
New in v1.13.