I have implemented the sweep-line approach used by Domiter and Zalik to generate a constrained Delaunay triangulation for a set of points in 2D space in Java. I want to make sure that the code which I've developed truly works for n
randomly generated points and k
constraint edges among them.
Now using a generic strategy I'd like choose a random point from the set of n
vertices and then choose a second random point and have an edge between them might not work since what I understand from the definition of a constrained Delaunay triangulation is that the constraint edges are the edges of a planar straight line graph. Thus they are non-intersecting. If the points are selected at random a check might have to be performed to determine that they do not produce intersecting constraints. That approach may not be efficient at all.
Thus, I was wondering whether somebody knew of an efficient strategy to generate constraints randomly.
Thanks in advance.