xugrid.UgridDataArrayAccessor.connected_components#

UgridDataArrayAccessor.connected_components()[source]#

Every edge or face is given a component number. If all are connected, all will have the same number.

Wraps scipy.sparse.csgraph.connected_components`().

Returns:

labelled

Return type:

UgridDataArray