Comparative Study of Topological Indices for Capped and Uncapped Carbon Nanotubes