Delete function NodeDistance(G,k).