CoRe-GD: A Hierarchical Framework for Scalable Graph Visualization with GNNs
Florian Grötschla, Joël Mathys, Robert Veres, Roger Wattenhofer
TL;DR
CoRe-GD tackles the scalability challenge of stress-driven graph drawing by introducing a hierarchical coarsening framework and a novel positional rewiring scheme that enables long-range information exchange. It trains a recurrent GNN to minimize a scale-invariant stress objective across a coarsening hierarchy, using a replay buffer to stabilize long sequences of graph convolutions and a closed-form scaling factor $\alpha_{G,\Gamma}$ to preserve stress when rescaling to unit-area layouts. The approach achieves state-of-the-art stress performance on prominent benchmarks (e.g., the Rome dataset) and demonstrates sub-quadratic runtime via coarsening, enabling application to large graphs while maintaining layout quality. Additionally, the latent node embeddings produced by CoRe-GD show promise as powerful positional encodings for downstream tasks beyond graph drawing.
Abstract
Graph Visualization, also known as Graph Drawing, aims to find geometric embeddings of graphs that optimize certain criteria. Stress is a widely used metric; stress is minimized when every pair of nodes is positioned at their shortest path distance. However, stress optimization presents computational challenges due to its inherent complexity and is usually solved using heuristics in practice. We introduce a scalable Graph Neural Network (GNN) based Graph Drawing framework with sub-quadratic runtime that can learn to optimize stress. Inspired by classical stress optimization techniques and force-directed layout algorithms, we create a coarsening hierarchy for the input graph. Beginning at the coarsest level, we iteratively refine and un-coarsen the layout, until we generate an embedding for the original graph. To enhance information propagation within the network, we propose a novel positional rewiring technique based on intermediate node positions. Our empirical evaluation demonstrates that the framework achieves state-of-the-art performance while remaining scalable.
