A method for computing some topological descriptors based on distance in a graph, such as the molecular topological index (MTI), Schultz, Modified Schultz, Szeged and vertex PIv indices in simple connected graphs and in the family of C12n+4 fullerenes is presented.