conpy.one_to_all_connectivity_pairs

conpy.one_to_all_connectivity_pairs(src_or_fwd, ref_point, min_dist=0)

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

This is needed for one-to-all connectivity. Calculates all the pairs where the vertex is further away from reference point than the selected distance limit.

Parameters
src_or_fwdinstance of SourceSpaces | instance of Forward

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

ref_point: int

Index of the vertex that will serve as reference point.

min_dist: float

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

Returns
vert_fromndarray, shape (n_pairs,)

For each pair, the index of the first vertex. This is always the index of the refence point.

vert_tondarray, shape (n_pairs,)

For each pair, the index of the second vertex.

See also

all_to_all_connectivity_pairs

Obtain pairs for all-to-all connectivity.