Stochastic Blockmodel Approximation