Reduce the number of graph redraws