Abstract
The molecular structure topological descriptors are numeric invariants associated with a given molecular graph and exhibit the underlying molecular topology of the given molecular graph. They play a very important role in predicting certain physico-chemical properties and are useful in QSAR/QSPR analysis. In this article, we demonstrated a formula for calculating any degree-based topological index for graphene and graphdiyne nanoribbons. This finding interpolates other distinguished findings in this field of study. We also provide precise values for a number of well-known degree-based molecular topological indices for graphene and graphdiyne nanoribbons. A graph-theoretical analysis and comparison are also provided to show the vital importance and validation of the obtained results.