Abstract
We describe a fast multi-level layout for visualizing social networks, which can visualize social networks high quality and rapidly. There are two innovations in our fast multi-level layout. Firstly, we proposed a new graph multi-layered compression method based on random walk. The multi-layered compression process groups vertices to form "planet" systems and then abstract these "planet" systems as new vertices to define a new graph and is repeated until the graph size falls below some threshold. And we also proposed a new single level force-directed layout based on sampling. The multi-level layout process can be accelerated based on these two innovations. Finally, we have evaluated our layout on several well-known data sets. The experimental results show that our layout outperforms the state-ofthe-art method.
Introduction
Visualizing social networks is essential for understanding the relationships and structures within complex systems like Facebook or Twitter. The gold standard for these visualizations is the force-directed layout, which treats nodes like physical objects that repel each other while edges act like springs pulling them together. However, traditional force-directed methods face a massive scaling problem: calculating the repulsive forces between every pair of nodes is computationally expensive ($O(N^2)$). For large graphs, this makes the process agonizingly slow. While multi-level approaches exist—which simplify the graph, layout the simple version, and then expand it—they often struggle with either layout quality or the complexity of the compression process itself.
Methodology: The Fast Multi-level Layout (FML)
The authors propose two primary innovations to accelerate the visualization pipeline: a random walk-based compression strategy and a sampling-based force-directed layout.
Multi-level Graph Compression
To simplify the graph, the FML algorithm uses a "Planet System" model. It runs a random walk algorithm to assign weights to vertices; nodes with higher weights are considered more "central." The algorithm then groups lower-weight "moon" vertices around higher-weight "planet" vertices to form a compressed graph. This hierarchical process is repeated, creating multiple levels of abstraction until the graph is small enough to manage easily.
Sampling-Based Force-Directed Layout
Once the graph is compressed, it needs to be laid out. To solve the $O(N^2)$ repulsion bottleneck, FML introduces a sampling strategy. Instead of calculating repulsion for every node pair, a specific node only feels repulsion from its immediate neighbors (within two edges) and a random sample of other vertices from the rest of the graph. This drastically reduces the number of calculations required per iteration while maintaining global structure.
Algorithm Workflow
The final layout is achieved through interpolation: the algorithm starts with the coarsest (smallest) graph, finds its layout, and uses those positions as the starting point for the next, more detailed level. This ensures that the high-level organization of the network is preserved as the details are filled in.
Experimental Evaluation
The authors evaluated their FML algorithm using several well-known graph datasets, including DIMACS10 test sets and social network datasets like "data" (2,851 nodes), "power" (4,941 nodes), and "whitaker" (9,800 nodes).
Key findings include:
- Speed: For graphs with fewer than 5,000 vertices, FML consistently outperformed state-of-the-art methods like $FM^3$ and Walshaw’s algorithm. On the "data" set, FML completed the layout in 4.36 seconds, compared to 5.05 seconds for $FM^3$ and 20.05 seconds for Walshaw.
- Scalability: For networks under 10,000 nodes, the layout process generally completes within 20 seconds, making it viable for interactive applications.
- Quality: Qualitative comparisons show that FML preserves the organic, clustered structure of social networks as well as, or better than, existing published layouts.
Conclusion
The Fast Multi-level Layout (FML) offers a significant speedup for social network visualization at the "human-readable" scale (under 10,000 nodes). By utilizing random walks for intelligent compression and sampling for efficient physics simulation, it provides a high-quality layout rapidly. While the performance advantage wanes for massive-scale web graphs, FML is optimized for the specific visual density requirements of social network analysis.
Summary updated