arXiv Science⌕ Search

arXiv · 2611.35511

Learning Where to Start: Flow-Matching for Graph Layout Crossing Minimization

Abstract

Edge crossings are among the layout properties that most affect how well people read node-link diagrams, but computing low-crossing layouts is difficult. Unlike other layout properties such as stress or spring-electrical energy, the number of edge crossings is not differentiable. Differentiable surrogates have been proposed and combined with gradient descent to improve layouts, but they are local methods: the layouts they find depend on where they start. The usual starting points, e.g., low-stress layouts, are not diverse. In this work, we propose the generative flow-matching model XFlow to learn a more diverse and effective set of starting layouts. First, we show that XFlow can learn to generate layouts with low stress and low spring-electrical energy, even on large and out-of-domain graphs. We then show that learning to obtain layouts with few crossings is harder, but with consistent anchored targets and expert iteration on the model's own refined samples, XFlow excels at this task: it outperforms state-of-the-art methods for crossing minimization and scales to graphs with thousands of nodes.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yifan Hu, Timo Brand, Xuefeng Li, Jacob Miller, Stephen Kobourov. 2026-11-26. Learning Where to Start: Flow-Matching for Graph Layout Crossing Minimization. https://arxiv.science/abs/2611.35511

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Approximate Minimum Triangle Partitions

Let $ρ(P)$ be the minimum number of triangles in a partition of a simple polygon $P$ with $n$ vertices where triangle corners may be arbitrary points (Steiner points). It is not known whether $ρ(P)$ can be computed in polynomial time. We do not assume general position: when vertices of $P$ are collinear, a triangle side may pass through several vertices, and good partitions exploit this. Every vertex of $P$ is a corner of some triangle of every partition, so $ρ(P) \ge n/3$, and any triangulation, with $n-2$ triangles, is a 3-approximation that can be computed in $O(n)$ time. This is the best factor known. We improve it in two steps. First, let $ρ_0(P)$ be the minimum number of triangles over partitions whose corners are all vertices of $P$, which can be computed in $O(n^3)$ time (Asano, Asano, and Pinter, 1986). We prove that $ρ_0(P) \le 2ρ(P)-2$ unless $P$ is a triangle, which is tight. Thus Steiner points save at most half of the triangles and $ρ_0(P)$ is a 2-approximation, computed in $O(n^3)$ time. Second, we break the factor-2 barrier of Steiner-free partitions. We observe that $ρ_0(P)$ is close to $2ρ(P)$ only if optimal partitions have few Steiner points, each with many triangles around it. We handle this case by a dynamic program over partitions in which every Steiner point in the interior of $P$ is joined to a vertex of $P$ by a straight run of triangle sides, giving a 5/3-approximation in $O(n^{12})$ time.

cs.CG↗

Fréchet Distance of Partially Ordered Point Sets

We introduce discrete and continuous Fréchet distances for partially ordered point sets. Each linear extension of a partial order defines one possible polygonal curve, and the distance between two input posets is the minimum Fréchet distance over all such curves. This includes the classical Fréchet distance for ordered curves and the unordered point-set variant as special cases. These problems are NP-hard and we give exact exponential dynamic programming algorithms for computing both distances.

cs.CG↗

Cone-Based Statistics for Characterizing the Local Morphology of High-Dimensional Point Clouds

We introduce a cone-based local geometric statistic for characterizing the angular configuration of candidate boundary points in high-dimensional point clouds and investigate its impact on cosine-similarity-based metrics when reducing embedding dimensions. Our boundary score, between 0 and 1, measures the proportion of projected neighbors contained in a cone defined by two maximally separated neighbor directions. Using the cone aperture expressed in degrees, each point is assigned a convexity behavior. We derive two variants of our cone-based statistic to account for concavity and for a boundary-relative centrality measure, which we refer to as oriented depth. The benchmark evaluations on synthetic datasets show comparable AUROC values of our statistics compared to state-of-the-art methods in two boundary settings: the distance to the support setting and the position of a point with respect to its neighbors, which we refer to as the local-sector setting. We observe the added-value of our second variant to better detect and characterize local concavity in 2 dimensions compared to the other two cone-based statistics. All three cone-based statistics provide us with different but complementary frameworks to characterize the morphology of high-dimensional point clouds.

cs.CG↗