An experimental study of the gravitational collapse of a granular gas