Edge-contributions of some topological indices and arboreality of molecular graphs