Union-Find find algorithm: Find the lowest corresponding label. Relabelling is done when necessary.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | x | Label for which to find the lowest corresponding label. |
||
integer, | intent(inout), | dimension(:) | :: | labels | List of labels. labels(i) points to the lowest corresponding label of label i. |