pysdic.Mesh.assemble_elements_adjacency_graph#

Mesh.assemble_elements_adjacency_graph()[source]#

Assemble the elements adjacency graph of the mesh: two elements are neighbors if they share at least one vertex.

Shortcut for pysdic.fem.assemble_elements_adjacency_graph() with the connectivity of the mesh.

Returns:

A symmetric boolean sparse matrix of shape \((N_e, N_e)\) with an empty diagonal. The neighbors of element \(i\) are graph[i].indices.

Return type:

scipy.sparse.csr_matrix