Classification of Carbon Allotropes and Graphs