scipy.spatial.KDTree.query_pairs — SciPy v1.14.0.dev Manual