Embedding Trees and Cactus Graphs with Integer Edge Lengths on a Compact Integer Grid
Every planar graph can be embedded with crossing-free, straight-line edges on an $O(n) \times O(n)$ integer grid, where $n$ is the number of vertices. It is not known, however, whether integer edge lengths can be guaranteed for all planar graphs (conjectured to be true by Harborth). Kleber conjectures something even stronger: Every planar graph admits a planar straight-line grid drawing where every edge has integer length. Positive results for Kleber's conjecture are known for several classes of planar graphs, however, all but one of the existing results are existential and do not provide bounds on the size of the integer grid. We address this gap for trees and cactus graphs. For trees, we present a linear-time algorithm that computes a crossing-free straight-line drawing with integer edge lengths on an $O(n \log n) \times O(n \log n)$ grid. We complement this result by giving an $Ω(n^2)$ lower bound. For cactus graphs, we present a linear-time algorithm that computes a crossing-free straight-line drawing with integer edge lengths on an $O(n^2 \log n) \times O(n^2 \log n)$ grid.