dij - the number of bonds in the shortest path connecting the pair of atoms i and j
NSA - the number of non-hydrogen atom in the molecule
H. Wiener, J. Am. Chem. Soc., 1947, 69, 17.