This code implements the spectral hierarchical community detection method as discussed in the article:
"Hierarchical Community Structure in Networks", M.T.Schaub, J. Li, L. Peel, Phys. Rev. E, 2023, 107(5), 054305; doi:10.1103/PhysRevE.107.054305
See also arXiv:2009.07196
Please cite the above mentioned articles if you make use of this code.