Add graph sampling.