A majorization method for localizing graph topological indices