Updating the Graph size