# mne.spatio_temporal_tris_connectivity¶

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

Compute connectivity from triangles and time instants.

Parameters
trisarray

N x 3 array defining triangles.

n_timesint

Number of time points

remap_verticesbool

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

verbose

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

Returns
connectivitycoo_matrix

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