paper

Ranking and Unranking of the Planar Embeddings of a Planar Graph

arXiv:2411.10319

Abstract

Let be the set of all the planar embeddings of a (not necessarily connected) -vertex graph . We present a bijection from to the natural numbers in the interval . Given a planar embedding of , we show that can be decomposed into a sequence of natural numbers each describing a specific feature of . The function , which is a ranking function for , can be computed in time, while its inverse unranking function can be computed in time. The results of this paper can be of practical use to uniformly at random generating the planar embeddings of a graph or to enumerating such embeddings with amortized constant delay. Also, they can be used to counting, enumerating or uniformly at random generating constrained planar embeddings of .