I have N
number of points, for example:
A = [2, 3]
B = [3, 4]
C = [3, 3]
.
.
.
And they're in an array like so:
arr = np.array([[2, 3], [3, 4], [3, 3]])
I need as output all pairwise distances in BFS (Breadth First Search)
order to track which distance is which, like: A->B, A->C, B->C
. For the above example data, the result would be [1.41, 1.0, 1.0]
.
EDIT: I have to accomplish it with numpy or core libraries.