Predicting the structure of dynamic graphs