In this problem the edge weight is just the distance between two points. The distance between two points is the length of the path connecting them. How to enter numbers.
Distance a2 b2 Imagine you know the location of two points A and B like here.
In a 3 dimensional plane the distance between points X 1 Y 1 Z 1 and X 2 Y 2 Z 2 is given by. The linear distance between the two points is the square root of the sum of the squared values of the x-axis distance and the y-axis distance. To carry on the example. Distance 8 32 2 92 distance 8 3 2 2 9 2 distance 25121 distance 25 121 distance 146 distance 146 distance 1208 distance 1208.