Update graph size