Compute adjacency for a source space activation.
The source space. It can be a surface source space or a volume source space.
Maximal geodesic distance (in m) between vertices in the source space to consider neighbors. If None, immediate neighbors are extracted from an ico surface.
The adjacency matrix describing the spatial graph structure.