Add option to not redraw the graph when setting a selection