English

Upward Pointset Embeddings of Planar st-Graphs

Data Structures and Algorithms 2025-01-06 v4 Computational Geometry Discrete Mathematics

Abstract

We study upward pointset embeddings (UPSEs) of planar stst-graphs. Let GG be a planar stst-graph and let SR2S \subset \mathbb{R}^2 be a pointset with S=V(G)|S|= |V(G)|. An UPSE of GG on SS is an upward planar straight-line drawing of GG that maps the vertices of GG to the points of SS. We consider both the problem of testing the existence of an UPSE of GG on SS (UPSE Testing) and the problem of enumerating all UPSEs of GG on SS. We prove that UPSE Testing is NP-complete even for stst-graphs that consist of a set of directed stst-paths sharing only ss and tt. On the other hand, if GG is an nn-vertex planar stst-graph whose maximum stst-cutset has size kk, then UPSE Testing can be solved in O(n4k)O(n^{4k}) time with O(n3k)O(n^{3k}) space; also, all the UPSEs of GG on SS can be enumerated with O(n)O(n) worst-case delay, using O(kn4klogn)O(k n^{4k} \log n) space, after O(kn4klogn)O(k n^{4k} \log n) set-up time. Moreover, for an nn-vertex stst-graph whose underlying graph is a cycle, we provide a necessary and sufficient condition for the existence of an UPSE on a given pointset, which can be tested in O(nlogn)O(n \log n) time. Related to this result, we give an algorithm that, for a set SS of nn points, enumerates all the non-crossing monotone Hamiltonian cycles on SS with O(n)O(n) worst-case delay, using O(n2)O(n^2) space, after O(n2)O(n^2) set-up time.

Keywords

Cite

@article{arxiv.2408.17369,
  title  = {Upward Pointset Embeddings of Planar st-Graphs},
  author = {Carlos Alegria and Susanna Caroppo and Giordano Da Lozzo and Marco D'Elia and Giuseppe Di Battista and Fabrizio Frati and Fabrizio Grosso and Maurizio Patrignani},
  journal= {arXiv preprint arXiv:2408.17369},
  year   = {2025}
}

Comments

This is the long version of a paper to appear at the 32nd International Symposium on Graph Drawing and Network Visualization (GD '24)