Mixed membership stochastic blockmodels