3 ms·
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
by jamessb 5y ago
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 https://en.wikipedia.org/wiki/Tutte_embedding
[2]: https://epubs.siam.org/doi/abs/10.1137/120872310 https://epubs.siam.org/doi/abs/10.1137/120872310