xugrid.Ugrid2d.node_node_connectivity#

property Ugrid2d.node_node_connectivity: csr_matrix#

Node to node connectivity.

The connectivity is represented as an adjacency matrix in CSR format, with the row and column indices as a (0-based) node index. The data of the matrix contains the edge index as every connection is formed by an edge.

Returns:

connectivity

Return type:

csr_matrix