Statistical Tools For Network Data: Prediction And Resampling