xugrid.Ugrid1d.contract_vertices#

Ugrid1d.contract_vertices(indices: ndarray) Ugrid1d[source]#

Return a simplified network topology by removing all nodes that are not listed in indices.

Parameters:

indices (np.ndarray of integers)

Returns:

contracted

Return type:

Ugrid1d