[Paper Review] HyperANF: Approximating the Neighbourhood Function of Very Large Graphs on a Budget
HyperANF introduces a highly scalable algorithm for approximating the neighbourhood function of massive graphs using HyperLogLog counters and broadword programming, enabling accurate computation of the effective diameter and a novel structural metric—spid (Shortest-Paths Index of Dispersion)—that reliably distinguishes social networks from web graphs on billion-node graphs in hours on a standard workstation.
The neighbourhood function N(t) of a graph G gives, for each t, the number of pairs of nodes <x, y> such that y is reachable from x in less that t hops. The neighbourhood function provides a wealth of information about the graph (e.g., it easily allows one to compute its diameter), but it is very expensive to compute it exactly. Recently, the ANF algorithm (approximate neighbourhood function) has been proposed with the purpose of approximating NG(t) on large graphs. We describe a breakthrough improvement over ANF in terms of speed and scalability. Our algorithm, called HyperANF, uses the new HyperLogLog counters and combines them efficiently through broadword programming; our implementation uses overdecomposition to exploit multi-core parallelism. With HyperANF, for the first time we can compute in a few hours the neighbourhood function of graphs with billions of nodes with a small error and good confidence using a standard workstation. Then, we turn to the study of the distribution of the shortest paths between reachable nodes (that can be efficiently approximated by means of HyperANF), and discover the surprising fact that its index of dispersion provides a clear-cut characterisation of proper social networks vs. web graphs. We thus propose the spid (Shortest-Paths Index of Dispersion) of a graph as a new, informative statistics that is able to discriminate between the above two types of graphs. We believe this is the first proposal of a significant new non-local structural index for complex networks whose computation is highly scalable.
Motivation & Objective
- To develop a scalable, efficient method for approximating the neighbourhood function of very large graphs, which is computationally prohibitive to compute exactly.
- To improve upon the ANF algorithm by reducing memory usage and increasing speed through advanced probabilistic counting and low-level optimization.
- To enable the computation of the effective diameter and related metrics on graphs with over one billion nodes using standard hardware.
- To identify and validate a new structural metric—spid—that discriminates between social networks and web graphs based on the dispersion of shortest-path distances.
- To provide a freely available, high-performance implementation within the WebGraph framework for reproducible research and large-scale analysis.
Proposed method
- Employs HyperLogLog counters to estimate the number of distinct nodes reachable within t hops, reducing memory usage from O(n log n) in ANF to O(n log log n).
- Uses broadword programming to efficiently combine HyperLogLog counters across nodes in parallel, enabling fast, word-level operations on compact counter representations.
- Applies task decomposition to exploit multi-core parallelism, distributing the computation of reachability sets across available CPU cores.
- Leverages the probabilistic properties of HyperLogLog to maintain statistical confidence intervals for all approximations, ensuring reliability.
- Implements a systolic, iterative computation where each node propagates its current reachability estimate to neighbors, using counter updates to track expansion of the 'ball' around each node.
- Uses the final distribution of distances between reachable node pairs to compute the index of dispersion (spid), a new global network metric.
Experimental results
Research questions
- RQ1Can the neighbourhood function of billion-node graphs be approximated with high accuracy and low memory footprint using probabilistic counting?
- RQ2How does the distribution of shortest-path distances differ between social networks and web graphs, and can this be quantified with a single scalable metric?
- RQ3Can the spid (Shortest-Paths Index of Dispersion) serve as a reliable, non-local structural index to distinguish between social networks and web graphs?
- RQ4What is the performance and memory efficiency of HyperANF compared to ANF and HADI on large-scale graphs?
- RQ5Does symmetrizing a directed graph distort the underlying structural properties, particularly in terms of distance distribution and spid?
Key findings
- HyperANF computes the neighbourhood function of graphs with over one billion nodes in just a few hours on a standard workstation with 128 GB RAM, achieving high precision and statistical confidence.
- The algorithm reduces memory usage from O(n log n) in ANF to O(n log log n), enabling scalability to graphs far beyond ANF’s practical limits.
- HyperANF outperforms HADI (a MapReduce-based ANF implementation) by computing the same function on a 2-billion-link Kronecker graph in under 15 minutes on a laptop, compared to 30 minutes on 90 supercomputer nodes.
- The spid metric successfully discriminates between social networks (low dispersion) and web graphs (high dispersion), with no correlation to graph size or density.
- The spid of the giant component of web graphs is nearly identical to that of the full graph, indicating robustness to sampling artifacts and crawler bias.
- Symmetrizing directed graphs drastically reduces average distance and spid, indicating that such preprocessing destroys meaningful structural information and should be avoided in network analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.