smoothing graphs