Write inter_node_distances w/ test, update nodal metric functions.