Forecasting the structure of dynamic graphs