pysdic.Mesh.assemble_vertices_adjacency_graph#

Mesh.assemble_vertices_adjacency_graph()[source]#

Assemble the vertices adjacency graph of the mesh: two vertices are neighbors if they belong to the same element.

Shortcut for pysdic.fem.assemble_vertices_adjacency_graph() with the connectivity and the number of vertices of the mesh (the vertices used by no element have no neighbors).

Returns:

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

Return type:

scipy.sparse.csr_matrix