graph distances between various atoms