Although I have some ideas on how to create a dual graph from a planar graph, I preferred to ask it here. Is there any algorithm for this purpose?
Thank you so much.
Although I have some ideas on how to create a dual graph from a planar graph, I preferred to ask it here. Is there any algorithm for this purpose?
Thank you so much.
You may have heard of the Quad-Edge data structure for graph representation (https://en.wikipedia.org/wiki/Quad-edge). It has the advantage to represent the graph and its dual simultaneously, so once the graph is built, there is no need to "dualize" anymore.
I suspect that the Winged-edge structure (or even DCEL) has the same capability but this needs to be confirmed.
Take the set of faces as set of vertices and add an edge $f_1f_2$ whenever an edge separates these two faces.