Updating graph