I have a list of floating points numbers which represent x and y coordinates of points.
(-379.99418604651157, 47.517234218543351, 0.0) #representing point x
an edge contains two such numbers.
I’d like to use a graph traversal algorithm, such as dijkstra, but using floating point numbers such as the ones above don’t help.
What I’m actually looking for is a way of approximating those numbers:
(-37*.*, 4*.*, 0.0)
is there a python function that does that?
Like so?