brainspace.mesh.mesh_elements.get_immediate_adjacency¶
-
brainspace.mesh.mesh_elements.
get_immediate_adjacency
(surf, include_self=True, mask=None, dtype=<class 'numpy.uint8'>)[source]¶ Get immediate adjacency matrix.
Parameters: Returns: adj (sparse matrix, shape (n_points, n_points)) – Immediate adjacency matrix.
Notes
Immediate adjacency: set to one all entries of points that share and edge with current point.