Clustering in networks with the collapsed Stochastic Block Model