uxarray.grid.connectivity._build_node_faces_connectivity(face_nodes, n_node)#

Builds the Grid.node_faces_connectivity: integer DataArray of size (n_node, n_max_faces_per_node) (optional) A DataArray of indices indicating faces that are neighboring each node.

This function converts the face-node connectivity data into a sparse matrix, and then constructs the node-face connectivity by iterating over each node in the mesh and retrieving the set of neighboring faces.


RuntimeError – If the Mesh object does not contain a ‘face_node_connectivity’ variable.