Hastings, M. B. (2006). Community Detection as an Inference Problem