I am looking for an algorithm for the following task:
We are playing the following game : There is a planar graph drawn in front of us, e.g.
We can see the edges have intersected each other at 3 places. We are going to move the vertices without deleting any edge, so that the edges don't intersect each other any more. e.g. for the given graph we can do it in the following two steps, by first moving the vertex E,
and then by moving the vertex B
This was an extremely easy example. The planar graph given can be much more complicated.
which has to be converted to
Anyone can do it by trial and error, but what is the general algorithm one needs to follow given any planar graph structure.
Any kind of hint or solution is welcome. Thanks in advance! :)