Abstract
NetSimile is a fast, scalable algorithm designed to compare networks of varying sizes without requiring node correspondence. By transforming complex graphs into compact 35-dimensional "signatures" derived from local structural features and their statistical moments, NetSimile enables efficient clustering, anomaly detection, and network classification in linear time. This approach overcomes the computational bottlenecks of traditional graph comparison methods while maintaining high discriminative power.
Introduction
Comparing social or biological networks of vastly different scales—for instance, a network with a thousand nodes versus one with a million—presents a significant challenge in data science. Traditional methods like Graph Edit Distance are often NP-hard, while others require known node correspondences that are rarely available in anonymized or disparate datasets. Furthermore, there is a need for "size-invariant" measures that can determine if two networks share the same underlying structural logic regardless of their total volume. NetSimile addresses these challenges by providing a correspondence-free, size-independent similarity measure that scales linearly with the number of edges.
Methodology
NetSimile employs a three-step pipeline to generate and compare network signatures:
- Feature Extraction: For every node, the algorithm calculates seven local and "egonet" (a node and its immediate neighbors) features, including node degree, clustering coefficient, average neighbor degree, and egonet edge counts.
- Feature Aggregation: To achieve size independence, NetSimile analyzes the distribution of these seven features across the entire graph. It computes five descriptive statistics (moments)—median, mean, standard deviation, skewness, and kurtosis—for each feature. This results in a fixed-length 35-dimensional signature vector (7 features × 5 moments) for any graph.
- Comparison: Similarity between two graphs is determined by calculating the Canberra Distance between their signature vectors. This metric is chosen for its sensitivity to small changes near zero and its ability to handle features across different scales effectively.
Datasets
The study evaluates NetSimile on over 30 real-world networks and several synthetic models. Real-world data includes co-authorship networks (arXiv, DBLP), movie collaborations (IMDb), and internet routing (Oregon AS). Synthetic models include Erdos-Renyi, Forest Fire, Watts-Strogatz, and Barabasi-Albert graphs to test the algorithm's ability to distinguish between different linking models.
Key Results and Insights
Scalability and Accuracy
NetSimile demonstrates linear complexity $O(E)$ relative to the number of edges. In empirical tests, it processed massive graphs in seconds, whereas baseline methods like Frequent Subgraph Mining (FSM) required days. In a network classification task, NetSimile achieved 100% accuracy in identifying synthetic graph types, significantly outperforming eigenvalue-based methods.
Anomaly Detection and Visualization
The algorithm successfully identified structural discontinuities in temporal data, such as a viral event in Yahoo! IM traffic. Furthermore, NetSimile provides an intuitive way to categorize networks. By projecting the 35-D signatures into 2D space using Singular Value Decomposition (SVD), the authors showed that similar types of networks naturally cluster together, effectively creating a structural taxonomy of graphs.
Conclusion
NetSimile offers a powerful framework for large-scale network analysis by focusing on the distribution of local neighborhood properties as a proxy for global structure. While the current implementation uses seven empirical features, the framework is extensible to include additional metrics like PageRank. Future work may explore adaptations for directed or weighted graphs, though the current size-invariant, correspondence-free approach already provides a significant leap in scalable network comparison.
Summary updated