The Shark-ML library implements two clustering algorithms: hierarchical clustering and the k-means algorithm.