Driving Interactive Graph Exploration Using 0-Dimensional Persistent Homology Features

Ashley Suh, Mustafa Hajij, Bei Wang, Carlos Scheidegger, Paul Rosen · DOI

Abstract

Graphs are commonly used to encode relationships among entities, yet their abstractness makes them difficult to analyze. Node-link diagrams are popular for drawing graphs, and force-directed layouts provide a flexible method for node arrangements that use local relationships in an attempt to reveal the global shape of the graph. However, clutter and overlap of unrelated structures can lead to confusing graph visualizations. This paper leverages the persistent homology features of an undirected graph as derived information for interactive manipulation of force-directed layouts. We first discuss how to efficiently extract 0-dimensional persistent homology features from both weighted and unweighted undirected graphs. We then introduce the interactive persistence barcode used to manipulate the force-directed graph layout. In particular, the user adds and removes contracting and repulsing forces generated by the persistent homology features, eventually selecting the set of persistent homology features that most improve the layout. Finally, we demonstrate the utility of our approach across a variety of synthetic and real datasets.

Introduction

Visualizing complex networks using node-link diagrams is standard practice, with force-directed layouts (spring-mass systems) being the most popular method for arranging nodes. However, because these algorithms rely purely on local node-to-node relationships, they often fail to reveal the global shape of dense graphs, resulting in cluttered, overlapping "hairballs." Interacting with these layouts is typically limited to clicking and dragging individual nodes—a tedious, unscalable process that often fights against the layout's underlying physics.

This paper introduces a novel interactive visualization technique that uses 0-dimensional persistent homology (PH), a topological data analysis method, to extract structural features from graphs. By manipulating a visual "barcode" of these features, users can apply targeted contracting and repulsing forces to untangle the graph and highlight meaningful clusters in real-time.

Methodology: Topological Data Analysis for Graph Layouts

The authors leverage 0-dimensional Persistent Homology to guide the layout through a four-step process:

  1. Metric Space Embedding: The graph is converted into a metric space using shortest-path distances. For unweighted graphs, the Jaccard index of node neighborhoods is used to simulate edge weights.
  2. PH Extraction: 0D PH features track how connected components merge as a distance threshold increases. This is computationally equivalent to finding the Minimum Spanning Tree (MST) using Kruskal's algorithm.
  3. Interactive Barcode: Extracted features are displayed as a persistence barcode. Long bars represent significant structural features (signal), while short bars represent local noise.
  4. Topological Forces: Users interact with the barcode rather than individual nodes. Selecting a short bar applies a contracting force to pull specific nodes together, while selecting a long bar applies a repulsing force to push sub-partitions apart.
Extraction of 0-dimensional persistent homology features where bars represent the lifespan of connected components.

Results and Evaluation

The approach was evaluated on 12 datasets, including synthetic graphs (e.g., Barbell, Lobster) and real-world networks (e.g., Les Misérables, US Senate voting, Madrid Train Bombing).

The PH calculation proved fast enough for interactive use, taking only a few seconds for graphs with up to 100,000 edges. The force-directed layout updates in under 100 milliseconds per frame. A custom metric showed that repulsion forces achieved up to a 1986% improvement in separating targeted clusters compared to a standard Fruchterman-Reingold (F-R) layout.

Comparison of standard F-R layout with topological force-directed layouts (contraction, repulsion, and both) guided by a persistence barcode.

In case studies, the tool successfully separated US Senators by political party and highlighted swing voters. In the Madrid Train Bombing dataset, it isolated central terrorist operatives that were previously difficult to distinguish in standard layouts.

Discussion and Conclusion

By prioritizing topology over geometry, the system extracts mathematically robust features insensitive to minor noise. Shifting interaction to the persistence barcode allows for semantically meaningful layout changes with a single click.

However, the method has limitations. Adding too many topological forces can over-constrain the system, and user-driven selection may introduce bias. Future work will explore higher-dimensional PH features, such as 1-dimensional cycles, to visualize more complex structures like rings or tunnels in networks.

Summary updated

BibTeX
@article{suh2020driving,
  author = {Ashley Suh and Mustafa Hajij and Bei Wang and Carlos Scheidegger and Paul Rosen},
  title = {{Driving Interactive Graph Exploration Using 0-Dimensional Persistent Homology Features}},
  journal = {IEEE TVCG},
  year = {2020},
  doi = {10.1109/tvcg.2019.2934802},
}
Figure