Abstract
Most existing graph visualization methods based on dimension reduction are limited to relatively small graphs due to performance issues. In this work, we propose a novel dimension reduction method for graph visualization, called t-Distributed Stochastic Graph Neighbor Embedding (t-SGNE). t-SGNE is specifically designed to visualize cluster structures in the graph. As a variant of the standard t-SNE method, t-SGNE avoids the time-consuming computations of pairwise similarity. Instead, it uses the neighbor structures of the graph to reduce the time complexity from quadratic to linear, thus supporting larger graphs. In addition, to suit t-SGNE, we combined Laplacian Eigenmaps with the shortest path algorithm in graphs to form the graph embedding algorithm ShortestPath Laplacian Eigenmaps Embedding (SPLEE). Performing SPLEE to obtain a high-dimensional embedding of the large-scale graph and then using t-SGNE to reduce its dimension for visualization, we are able to visualize graphs with up to 300K nodes and 1M edges within 5 minutes and achieve approximately 10% improvement in visualization quality.
Introduction
Visualizing large-scale graph data, such as social networks or co-authorship maps, presents significant computational and aesthetic challenges. Traditional force-directed methods often fail to produce readable layouts for graphs exceeding 10,000 nodes, typically resulting in cluttered "hairy ball" visualizations. Modern approaches leverage dimension reduction (DR) techniques like t-SNE or UMAP. However, these methods often require an initial high-dimensional embedding and suffer from two primary drawbacks: quadratic time complexity ($O(N^2)$) due to pairwise similarity calculations and difficulty in preserving distinct cluster structures inherent in graph data.
Methodology
The proposed pipeline consists of a Graph Embedding (GE) step followed by a Dimension Reduction (DR) step.
ShortestPath Laplacian Eigenmaps Embedding (SPLEE)
To address the limitations of standard Laplacian Eigenmaps, which only consider direct adjacency, we developed SPLEE. This method incorporates graph-theoretic distances by applying a heat kernel to the shortest path lengths between nodes. This approach ensures that nodes within a few hops of each other remain proximal in the high-dimensional embedding space, capturing the global graph structure more effectively than local-only methods.
t-Distributed Stochastic Graph Neighbor Embedding (t-SGNE)
The core contribution is t-SGNE, a variant of t-SNE optimized for graphs. Unlike standard t-SNE, which constructs neighborhood graphs based on Euclidean distances in high-dimensional space, t-SGNE utilizes the original graph's topology. By employing Breadth-First Search (BFS) to identify neighbors, the complexity of neighborhood construction is reduced from quadratic to linear ($O(|V|)$), enabling the visualization of massive datasets.
Experimental Evaluation
The methods were evaluated on various real-world datasets, including EMAILUNIV, WIKI, and LASTFM, as well as large-scale synthetic and real-world networks like DBLP (317k nodes) and LIVEJOURNAL (3.9M nodes).
As shown in the performance table, the SPLEE + t-SNE combination consistently achieves higher Normalized Mutual Information (NMI) and Aesthetic Quality (AQ) scores compared to baselines like DeepWalk. For instance, on the EMAILUNIV dataset, SPLEE + t-SNE achieved an NMI of 0.6106, a significant improvement over DeepWalk's 0.4951. In terms of speed, the combination of ShortestPath and t-SGNE visualized a 300,000-node graph in under 5 minutes, whereas standard t-SNE required over 33 minutes.
Visually, the proposed method produces more distinct and separated clusters, as illustrated in the comparison between SPLEE and DeepWalk embeddings. The use of shortest path distances in SPLEE allows the algorithm to capture the global structure of the graph better than traditional methods.
Conclusion
By leveraging the native topology of graphs, t-SGNE and SPLEE provide a scalable and high-quality solution for large-scale graph visualization. The transition from quadratic to linear time complexity allows for the visualization of graphs with millions of nodes in reasonable timeframes. Future work will focus on extending these methods to weighted graphs and optimizing the eigen-decomposition step in SPLEE to further enhance scalability for multi-million node networks.
Summary updated