conpy.connectivity.all_to_all_connectivity_pairs

conpy.connectivity.all_to_all_connectivity_pairs(src_or_fwd, min_dist=0.04)

Obtain pairs of vertices to compute all-to-all connectivity for.

This is needed for all-to-all connectivity. Calculates all the pairs of vertices that are further away from each other than the selected distance limit.

Parameters
src_or_fwdinstance of SourceSpaces | instance of Forwxard

The source space or forward model to obtain vertex pairs for.

min_dist: float

The minimum distance between vertices (in meters). Defaults to 0.04.

Returns
vert_fromndarray, shape (n_pairs,)

For each pair, the index of the first vertex.

vert_tondarray, shape (n_pairs,)

For each pair, the index of the second vertex.

See also

one_to_all_connectivity_pairs

Obtain pairs for one-to-all connectivity.