graphlow.core.MeshTopology.cell_degree_matrix#

MeshTopology.cell_degree_matrix(layout: Literal['csr', 'coo'] = 'coo') T#

Materialize cell degree matrix.

Parameters:
layoutLiteral[“csr”, “coo”]

Layout of the sparse matrix. Default is “coo”.

Returns:
T

Backend tensor of shape (n_cells, n_cells). dtype is float with the precision set by the backend.