Predicting the evolution of communities in social networks