Implementation of different graph smoothing algorithms