The paper studies a correspondence between axiomatizations of two objects defined by the distance function of a (finite) nontrivial connected graph.