getDistanceBetweenNodes

Measures the distance between two nodes (n1, n2) in the environment.