Statistical Inference of Large-scale Structure in Networks