The definition of a planar graph that minimizes the number of intersections is NP-Hard. See the wiki page at Number Intersection .
You can try several heuristics, the power arrangement is quite popular. I believe that (graphviz uses them, if I remember correctly).
You can also try some approximation algorithms, you should find links to the wiki page.
Hope this helps.
Aryabhatta
source share