Calculate the degree of seperation between two nodes on a graph.