# From Nodes to Pixels: Topological and Structural Two-View Graph Imaging

*Md Joshem Uddin, Soham Changani, Sai K Navuluru, Cuneyt Akcora, Baris Coskunuzer*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148590) · [OpenReview](https://openreview.net/forum?id=wd6T1tqNIh) · [Open on the map](../papers.html#p148590)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Graph Representation Learning for Heterophilic Structures](../pgroup/21.md) · Type: new method · Keywords: graph imaging, topological representation, structural view, fixed-budget tensors, graph classification, molecular prediction

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Graph Structural Encoding; [Computer Vision & 3D](../areas/computer-vision.md) › Medical Visual Computing › Medical Image Segmentation; [Graph Learning](../areas/graph-learning.md) › Graph Reasoning and Representation › Graph learning

## Summary
G2Image introduces a fixed-budget graph imaging framework that produces two complementary image-like views-TopoGrid and GraphGrid-to provide a reusable tensor interface for graph learning.

## Explained to a 5-year-old
Computers sometimes need to understand shapes that are like networks of dots and lines, but these shapes can be different sizes and look different each time. To help them, we turn each shape into two small pictures that are always the same size, like making a fixed-size photo. The first picture shows the overall shape and tells you how the dots are linked together. The second picture counts how many lines connect groups of dots, giving extra details. These pictures can be read by regular picture-reading tools, making it easier to learn about many kinds of networks, like molecules in science.

## Explained to a 5-year-old, longer
Imagine you have a bunch of dots that are connected by lines, and you want a computer to understand them. Usually, each network looks different because it can have many or few dots and the lines can be arranged in many ways. This makes it hard for computers to use the same tools to look at many different networks. So scientists thought of a way to turn any network into two pictures that are always the same size. The first picture captures the overall shape and tells you how the dots are linked together. The second picture counts how many lines connect groups of dots, giving extra information about the network. Because the pictures are always the same size, they can be processed by regular image-processing tools, just like we use for photos. These pictures are also stable, meaning small changes in the original network do not change the pictures too much. With these two pictures, computers can learn to recognize patterns in many kinds of networks. This works for simple networks like social connections, as well as complex ones like molecules used in chemistry. The method also lets researchers try new ideas without having to redesign the whole system each time. Overall, this approach makes it easier to study and use networks in many scientific and engineering fields.

## For a technical reader
The paper introduces G2Image, a framework that converts arbitrary graph structures into two fixed-size image-like tensors. TopoGrid encodes a topological bifiltration as a multipersistence surface, while GraphGrid aggregates edge densities between node groups. These tensors can be processed by standard 2D convolutional encoders and aligned using a supervised contrastive loss. The resulting representations are permutation-invariant and come with stability guarantees, making them robust to input variations. Experiments on graph classification and molecular prediction benchmarks show that G2Image matches or exceeds existing methods while simplifying integration with vision-based pipelines.

## Problem
Graph learning currently lacks a standardized, fixed-size input representation that can be uniformly processed across tasks, as graphs vary in size, density, and node labeling, making it hard to apply conventional 2D or sequence models.

## Method
The approach converts each graph into two complementary image-like views: a topological view derived from an intrinsic bifiltration and a structural view based on edge density aggregation between node groups. These views are permutation-invariant, fixed-size tensors that can be processed by standard 2D encoders and aligned via a supervised cross-view contrastive loss.

## Results
The approach attains competitive performance on graph classification and molecular prediction tasks, outperforming single-view and standard fusion baselines while remaining architecture-agnostic for attribute-rich molecular graphs.

## Contributions
It provides a fixed-budget imaging framework that yields permutation-invariant, resolution-controlled graph representations suitable for standard 2D encoders, and demonstrates consistent gains over existing graph fusion strategies.

## Research questions this paper is counted under

- [How can graph foundation models learn representations that generalize across graphs of varying size and structure?](../q/398.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148590)
