MOG: Mapper on Graphs for Relationship Preserving Clustering

Mustafa Hajij, Bei Wang, Paul RosenarXiv 2018

TL;DR

This paper introduces "Mapper on Graphs" (MOG), a novel method that adapts the topological data analysis tool, Mapper, to create multi-scale, homology-preserving "skeletons" of complex graphs. MOG addresses the visual clutter and information loss inherent in traditional graph visualizations, offering a way to understand large networks by summarizing their core topological features.

What Problem Does This Paper Address?

Visualizing large and complex graphs is a significant challenge. Traditional node-link diagrams quickly become cluttered and unreadable as the number of nodes and edges increases, making it difficult to discern underlying structures and relationships. Existing graph aggregation and clustering techniques often fail to guarantee the preservation of essential topological features (like connected components and "holes" or tunnels) and typically offer only a single, fixed perspective on the graph's structure. This paper aims to bridge this gap by providing a method that can generate simplified, yet topologically faithful, representations of graphs at multiple scales.

Methods

The core of the paper is the "Mapper on Graphs" (MOG) construction, a variation of the classic Mapper algorithm adapted for weighted, undirected graphs. The process involves several key steps:

  1. Topological Lens: A real-valued function is applied to each node in the graph. This function acts as a "lens" to highlight specific graph properties. The authors explore five such lenses: Average Geodesic Distance (AGD), Density Estimation, Eccentricity, Eigenfunctions of the Graph Laplacian (specifically the Fiedler vector), and PageRank. Each lens offers a different perspective on the graph's structure.
  2. Covering the Range: The range of the topological lens function is divided into a set of overlapping intervals, forming a "cover." The number of these intervals (n) controls the level of detail or aggregation in the resulting skeleton. The authors note that for graphs, unlike point clouds, overlap (ε) is not strictly necessary due to inherent connectivity.
  3. Inverse Image and Subgraphs: For each interval in the cover, the set of nodes whose function values fall within that interval is identified. The subgraph induced by these nodes is then extracted.
  4. Clustering Subgraphs: To form the nodes of the output "mapper graph," each induced subgraph is clustered. The authors experiment with three clustering methods: connected components, modularity clustering, and label propagation, each preserving different aspects of the subgraph's structure.
  5. Forming Mapper Graph Edges: Edges in the mapper graph represent connections between clusters. Instead of relying on simple overlap, MOG uses a graph-cut approach to count edges between nodes in different clusters, providing a more robust measure of connectivity.
  6. Multi-Scale Visualization: By adjusting the n parameter (number of cover elements), MOG can generate a hierarchy of skeletons, ranging from highly aggregated summaries to more detailed representations, effectively enabling multi-scale exploration.

Datasets

The authors evaluated their approach on a diverse set of over 45 graphs, including:

  • Synthetic datasets: Such as BALANCED TREE, BARBELL, CIRCULAR LADDER, RING OF CLIQUES, WATTS STROGATZ.
  • Real-world datasets: Including social networks (e.g., AMAZON0302, COM-AMAZON, COM-YOUTUBE, SOC-EPINIONS), biological networks (e.g., BIO-CELEGANS, BIO-DISEASOME, BN-MOUSE-VISUAL-CORTEX-2), and infrastructure networks (e.g., USAIR97, AIRPORT).

These datasets span a wide range of sizes, from small graphs with a few hundred nodes to very large graphs with over a million nodes. The paper does not introduce new benchmark datasets but utilizes existing ones to demonstrate the generality and scalability of MOG.

Key Insights and Ideas

  • Homology Preservation is Key: The core insight is that by adapting Mapper, MOG can preserve the fundamental topological features (components and tunnels) of the original graph, even in highly simplified representations. This is crucial for understanding the global structure of complex networks.
  • Topological Lenses Offer Multiple Perspectives: The choice of a topological lens (e.g., PageRank for importance, Eccentricity for centrality) allows users to explore the same graph from different analytical viewpoints, revealing distinct structural patterns.
  • Multi-Scale Summarization: The n parameter provides a simple yet powerful mechanism for controlling the level of detail, enabling users to zoom in and out of the graph's structure without losing its essential topological integrity.
  • Graph-Cut for Edge Formation: Moving beyond simple overlap for edge formation in the mapper graph, the graph-cut approach provides a more principled way to define connections between aggregated nodes, better reflecting the original graph's connectivity.
  • Scalability with Specific Choices: While some topological lenses and clustering algorithms are computationally expensive, MOG can achieve practical scalability for large graphs by selecting efficient lenses (PageRank, Fiedler vector) and clustering methods (connected components).

Key Results

  • Homology Preservation: Visual examples (Figures 1, 8, 9, 10) demonstrate that MOG effectively retains prominent homological structures, such as cycles and components, as the level of aggregation (n) varies.
  • Performance:
    • Lens Calculation: PageRank and Fiedler vector are significantly faster for large graphs (scaling roughly linearly with the number of nodes) compared to AGD, density, and eccentricity, which become computationally prohibitive.
  • Mapper Graph Calculation: Connected components clustering is the most scalable, followed by asynchronous label propagation, and then modularity clustering. The time complexity generally decreases with more cover elements (n) due to smaller subgraphs.
  • Human-Subject Evaluation: A user study showed that participants could correctly identify MOG-generated skeletons that represented the original graph's structure with 79% accuracy, significantly above the 50% null hypothesis, validating the method's ability to capture perceived graph similarity.
  • Large Graph Visualization: MOG successfully generated meaningful summaries for very large graphs (e.g., AMAZON0302, COM-AMAZON, COM-YOUTUBE) where traditional node-link diagrams would be impossible to interpret.

Limitations and Future Work

  • Parameter Selection: The authors acknowledge that selecting the appropriate topological lens and cover parameters (n, ε) can be challenging and is largely data-dependent. While they provide an interface for exploration, automatic parameter selection remains an open problem.
  • Layout Agnosticism: While MOG is agnostic to graph layout, further research is needed to identify optimal layout methods for mapper graphs to enhance visual coherence and interpretability.
  • Scalability Trade-offs: Achieving high scalability requires careful selection of lenses and clustering algorithms, which might limit the range of perspectives available.
  • Future Work: The authors suggest exploring semi-automatic parameter selection methods and investigating the relationship between MOG, spectral clustering, and graph min-cut algorithms in more detail. They also plan to explore more advanced layout techniques for mapper graphs.

Summary updated

Abstract

Node-link diagrams are a popular method for representing graphs that capture relationships between individuals, businesses, proteins, and telecommunication endpoints. However, node-link diagrams may fail to convey insights regarding graph structures, even for moderately sized data of a few hundred nodes, due to visual clutter. We propose to apply the mapper construction -- a popular tool in topological data analysis -- to graph visualization, which provides a strong theoretical basis for summarizing the data while preserving their core structures. We develop a variation of the mapper construction targeting weighted, undirected graphs, called {\mog}, which generates homology-preserving skeletons of graphs. We further show how the adjustment of a single parameter enables multi-scale skeletonization of the input graph. We provide a software tool that enables interactive explorations of such skeletons and demonstrate the effectiveness of our method for synthetic and real-world data.
BibTeX
@misc{hajij2018mog,
  author = {Mustafa Hajij and Bei Wang and Paul Rosen},
  title = {{MOG: Mapper on Graphs for Relationship Preserving Clustering}},
  year = {2018},
  eprint = {1804.11242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.11242},
}
Figure