News for hackers. Stuff that matters.
Re:Planarity – Can you find the planar embedding? by gradschoolfail on Monday September 13, 2021 @02:55AM (#28508562)
Tweak the game a bit and it could become NP hard?
Re:Planarity – Can you find the planar embedding? by jamessb on Monday September 13, 2021 @04:01AM (#28508931)
If you know the graph is planar, then you can find the Tutte embedding by solving a set of linear equations [1].

However, the problem of finding a drawing that minimises the number of edge crossings (or even just the number of crossings in such a layout [e.g., 2]) for a general graph is NP-hard.

[1]: https://en.wikipedia.org/wiki/Tutte_embedding

[2]: https://epubs.siam.org/doi/abs/10.1137/120872310

Re:Planarity – Can you find the planar embedding? by ColinWright on Monday September 13, 2021 @04:43AM (#28509126)
There are linear time algorithms that take a planar graph and find an embedding where all the edges are straight lines.

However, I believe the problem of starting with a general graph and finding an embedding with the minimum number of edge crossings is NP-Hard.