graphs resampling