xugrid.Ugrid1d.topological_sort_by_dfs#

Ugrid1d.topological_sort_by_dfs() ndarray[source]#

Return an array of vertices in topological order.

Returns:

sorted_vertices

Return type:

np.ndarray of integer