vertex_adjacency_matrix#
- iskra.topology.vertex_adjacency_matrix(n_vertices: int, faces: Tensor) SparseTensor[SOURCE]#
Undirected vertex-vertex adjacency matrix.
Tip
The faces argument can be an arbitrary simplex. Tets, triangles, and edges all work.
- Parameters:
- Returns:
(
SparseTensor[Float, []]) – A sparse COO tensor of shape[n_vertices, n_vertices]. An entry is 1 if two vertices share an edge.