Estimate the number of communities under block models by using the spectral properties of network Beth-Hessian matrix with moment correction.

bethe_hessian_select(A, Kmax)

Arguments

A

adjacency matrix.

Kmax

the maximum number of communities to check.

Value

A list of result

K

estimated the number of communities

rho

eigenvalues of the Beth-Hessian matrix

References

Estimating the number of communities in networks by spectral methods, Can M. Le, Elizaveta Levina, arXiv preprint arXiv:1507.00827, 2015