The irradiation of solid hydrocarbons and the formation of linear carbon chains