Measures the distance between two nodes in the environment.
the distance between the two nodes
the first node
the second node