Learning Where to Start: Flow-Matching for Graph Layout Crossing Minimization
Yifan Hu, Timo Brand, Xuefeng Li, Jacob Miller, Stephen Kobourov
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.
Create a lesson
Metadata
- Categories
- cs.CG, cs.LG
Related papers
Continuous Map Matching to Graphs under Travel Time Constraints
Shared title terminologycs.CGYannick Bosch, Sabine Storandt
VisFlow: Interpretable Flow Matching for Visibility Reconstruction, Characterization, and Recognition
Shared title terminologycs.CGRahul Moorthy, Volkan Isler
Faster Maximum Clique in Unit Disk Graphs Without the Disk Model
Shared title terminologycs.CGGuilherme D. da Fonseca, Celina M. H. de Figueiredo, Vinícius G. Pereira de Sá
Approximating the Geometric Graph Distance: A Metric Relaxation, an Approximation Scheme, and Hardness
Shared title terminologycs.CGVitaliy Kurlin, Sushovan Majhi, Carola Wenk
Drawings of Trees and Outerplanar Graphs with Few Directions of Monotonicity
Shared title terminologycs.CGEleni Katsanou, Alexander Wolff
Faster Parameterized Algorithms for Covering Points with Non-Crossing Segments
Shared title terminologycs.CGSatyabrata Jana, Debabrata Pal, Sasanka Roy