Abstract Many chemical indices have been invented in theoretical chemistry, such as Wiener index, Merrifield-Simmons index, Hosoya index, spectral radius and Randić index, etc. The extremal trees and unicyclic graphs for these chemical indices are interested in existing literature. Let G be a molecular graph (called a cacti), which all of blocks of G are either edges or cycles. Denote G (n, r) ...