This is a stripped down version of Seurat::BuildClusterTree for anndata objects. It takes the same arguments as the Seurat function.
Usage
BuildClusterTree2(
object,
features = NULL,
dims = NULL,
reduction = "X_pca",
clust_column = "leiden"
)