Mesh.adjacency_matrix

Mesh.adjacency_matrix(rtype='array')[source]

Compute the adjacency matrix of the mesh.

Parameters:
rtypeLiteral[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional

Format of the result.

Returns:
array-like

The adjacency matrix.