How is the evolutionary path of galaxies generally understood regarding Spiral and Elliptical types?

Answer

Spirals convert gas into stars and are prone to mergers, driving them toward the gas-poor elliptical morphology

Galaxy shapes are viewed as stages in an evolutionary process. Over time, spirals naturally convert their gas into stars and are susceptible to merger events, which drives them toward the smooth, gas-poor morphology characteristic of ellipticals.

How is the evolutionary path of galaxies generally understood regarding Spiral and Elliptical types?
galaxiesastronomystructureformationshape