mne.spatial_tris_connectivity

mne.spatial_tris_connectivity(tris, remap_vertices=False, verbose=None)[source]

Compute connectivity from triangles.

Parameters
trisarray

N x 3 array defining triangles.

remap_verticesbool

Reassign vertex indices based on unique values. Useful to process a subset of triangles. Defaults to False.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns
connectivitycoo_matrix

The connectivity matrix describing the spatial graph structure.