def _set_interval(self, interval):
        if self.is_real:
            _reals_cache[self.poly][self.index] = interval
        else:
            reals_count = len(_reals_cache[self.poly])
            _complexes_cache[self.poly][self.index - reals_count] = interval
Clusters objects in `dismat` using affinity propagation algorithm.
dataset/ETHPy150Open sympy/sympy/sympy/polys/rootoftools.py/ComplexRootOf._set_interval--crossover with--dataset/ETHPy150Open inpho/vsm/vsm/extensions/clustering/manifold.py/Manifold.AffinityPropagation