duality#

“ Creates a dual graph of a planar diagram

Functions

dual_planar_diagram(k)

Generates the dual of a given planar diagram by transforming its structure such that nodes of the dual correspond to faces in the original diagram, and edges represent adjacency relationships between those faces.