find_clusters uses breadth-first search to identify the connected components of the corresponding adjacency graph of the centroid differences vectors.
find_clusters
find_clusters(A)
A
adjacency matrix