Another aspect of graph invariants depending on the path metric and an application in nanoscience