This documentation is for development version 0.18.dev0.

mne.spatial_tris_connectivity

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

Compute connectivity from triangles.

Parameters:
tris : array

N x 3 array defining triangles.

remap_vertices : bool

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

verbose : bool, str, int, or None

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

Returns:
connectivity : ~scipy.sparse.coo_matrix

The connectivity matrix describing the spatial graph structure.