Table of Contents
Fetching ...

Layered Graph Drawing with Few Gaps and Few Crossings

Alexander Dobler, Jakob Roithinger

TL;DR

The paper tackles readability-enhancing constraints in layered graph drawings by restricting the placement of dummy nodes, introducing OSCM-SG and OSCM-$k$G as gap-bounded variants of the classic one-sided crossing minimization problem. It develops transformation-based approximation methods that preserve ratios from OSCM to OSCM-SG, and introduces a dynamic-programming approach to handle multiple gaps in OSCM-$k$G, with proven runtime bounds. An exact ILP formulation for OSCM-$k$G complements the heuristics, enabling direct comparisons to evaluate solution quality. Experimental results on synthetic graphs demonstrate that the proposed gap-restricted methods achieve competitive crossing counts while offering tractable runtimes, highlighting practical benefits for scalable, readable layered drawings.

Abstract

We consider the task of drawing a graph on multiple horizontal layers, where each node is assigned a layer, and each edge connects nodes of different layers. Known algorithms determine the orders of nodes on each layer to minimize crossings between edges, increasing readability. Usually, this is done by repeated one-sided crossing minimization for each layer. These algorithms allow edges that connect nodes on non-neighboring layers, called ``long'' edges, to weave freely throughout layers of the graph, creating many ``gaps'' in each layer. As shown in a recent work on hive plots -- a similar visualization drawing vertices on multiple layers -- it can be beneficial to restrict the number of such gaps. We extend existing heuristics and exact algorithms for one-sided crossing minimization in a way that restricts the number of allowed gaps. The extended heuristics maintain approximation ratios, and in an experimental evaluation we show that they perform well with respect to the number of resulting crossings when compared with exact ILP formulations.

Layered Graph Drawing with Few Gaps and Few Crossings

TL;DR

The paper tackles readability-enhancing constraints in layered graph drawings by restricting the placement of dummy nodes, introducing OSCM-SG and OSCM-G as gap-bounded variants of the classic one-sided crossing minimization problem. It develops transformation-based approximation methods that preserve ratios from OSCM to OSCM-SG, and introduces a dynamic-programming approach to handle multiple gaps in OSCM-G, with proven runtime bounds. An exact ILP formulation for OSCM-G complements the heuristics, enabling direct comparisons to evaluate solution quality. Experimental results on synthetic graphs demonstrate that the proposed gap-restricted methods achieve competitive crossing counts while offering tractable runtimes, highlighting practical benefits for scalable, readable layered drawings.

Abstract

We consider the task of drawing a graph on multiple horizontal layers, where each node is assigned a layer, and each edge connects nodes of different layers. Known algorithms determine the orders of nodes on each layer to minimize crossings between edges, increasing readability. Usually, this is done by repeated one-sided crossing minimization for each layer. These algorithms allow edges that connect nodes on non-neighboring layers, called ``long'' edges, to weave freely throughout layers of the graph, creating many ``gaps'' in each layer. As shown in a recent work on hive plots -- a similar visualization drawing vertices on multiple layers -- it can be beneficial to restrict the number of such gaps. We extend existing heuristics and exact algorithms for one-sided crossing minimization in a way that restricts the number of allowed gaps. The extended heuristics maintain approximation ratios, and in an experimental evaluation we show that they perform well with respect to the number of resulting crossings when compared with exact ILP formulations.

Paper Structure

This paper contains 7 sections, 3 theorems, 1 equation, 1 figure, 1 algorithm.

Key Result

Lemma 0

Given $\pi_1,\pi_2$ such that a pair of edges $e,e'\in V_1\times V_2^{\text{dm}}$ crosses, there is $\pi_2'$ such that (1) $\textrm{cr}(G,\pi_1,\pi_2')<\textrm{cr}(G,\pi_1,\pi_2)$, (2) $\textrm{gaps}(\pi_2')\le \textrm{gaps}(\pi_2)$, and (3) if $\pi_2$ is a side-gap permutation, so is $\pi_2'$.

Figures (1)

  • Figure 1: (a) A layered graph drawing. (b) Long edges are replaced by paths of dummy nodes, shown as violet squares. (c) A drawing of two layers with the two node orderings $\pi_1$ and $\pi_2$ such that $\pi_2$ has $4$ gaps (shown with dashed rectangles), two of which are side gaps.

Theorems & Definitions (4)

  • Lemma 0
  • Theorem 1
  • Definition 2
  • Theorem 3