Identifies neighboring partitions by evaluating whether the midpoint between cluster centers is closer to those centers than to any other center.
find_neighbors(centers, parallel, cl, neighbor_tolerance)
List where element i contains indices of centers neighboring center i
Matrix; rows are cluster center coordinates
Logical; use parallel processing
Cluster object for parallel execution
Numeric; scaling factor for distance comparisons