get_vert_vert#

iskra.topology.get_vert_vert(faces: Tensor) Tensor[SOURCE]#

Vertex-vertex adjacencies.

The function returns vertex-to-vertex adjacency pairs \((i, j)\) and ensures both \((i, j)\) and \((j, i)\) are included. This function can be helpful when we want to perform operations over vertex one-rings.

Tip

The faces can be of arbitrary dimension. Tets, triangles, and edges all work.

Parameters:

faces (Tensor[Int64, [F, FV]]) – Face-vertex indices.

Returns:

(Tensor[Int64, [2 * E, 2]]) – Vertex-to-vertex adjacencies.