I want to construct a geometrical graph via euclidean thresholded edge when given nodes.
For example,
the given nodes are postion on 2D map
x1(1,0) x2(3,4) x5(5,6)
Then when I set the euclidean distance threshold such as 5, the graph will look like x1-x2-x5. Since x1 and x5 are farther than 5, they are not allowed to be connected.
How can I do this conveniently with networkx or other libraries?