Introduction
Breadth-First Search (BFS) is a cornerstone of large-scale network analysis. When networks like Facebook or the World Wide Web are too massive to crawl entirely, researchers rely on BFS to capture cohesive subgraphs that preserve topological features like clustering and shortest paths. However, BFS suffers from a significant, inherent bias: it disproportionately discovers high-degree (highly connected) nodes. This paper provides the first mathematical quantification of this bias and introduces a robust correction procedure to extract accurate statistics from incomplete crawls.
The Problem: Bias in Network Sampling
While Random Walks (RW) are well-understood and relatively easy to un-bias, they only yield a random list of nodes, losing the structural context of the graph. BFS is preferred for studying topology, but its bias is extreme. For instance, a partial BFS crawl of Facebook might estimate an average degree of over 300, even though the true average is under 100.
Because BFS samples without replacement—never visiting the same node twice—the statistical dependencies between sampled nodes become incredibly complex. This makes the bias notoriously difficult to analyze or correct compared to sampling methods with replacement.
Methodology
To make the analysis tractable, the authors model the sampling process on a random graph $RG(p_k)$ generated via the configuration model. They overcome the complex dependencies of sampling without replacement using a "continuous-time on-the-fly" discovery trick. By assigning each edge "stub" a random real-valued index between 0 and 1 and scanning this interval, they break the dependencies between iterations.
This allows them to derive an exact analytical formula for the observed degree distribution as a function of the fraction of sampled nodes ($f$). Using this foundation, they developed a bias-correction procedure based on the Horvitz-Thompson estimator, allowing researchers to reverse-engineer the true underlying node degree distribution from a biased sample.
Key Insights and Empirical Results
The study reveals several critical properties of graph traversals:
- Initial Bias: When the sample size is very small ($f \to 0$), the bias of BFS is identical to a classic Random Walk—the probability of sampling a node is directly proportional to its degree.
- Convergence: Bias decays monotonically as the fraction of sampled nodes ($f$) increases, eventually vanishing at $f=1$.
- Traversal Equivalence: Surprisingly, on a random graph, all common traversal techniques that do not revisit nodes—including BFS, Depth-First Search (DFS), and Forest Fire—suffer from the exact same degree bias.
- Assortativity Impact: In networks where popular nodes tend to link to other popular nodes (positive assortativity), the initial BFS bias is even more extreme than random graph models predict.
Empirical tests on Facebook data highlighted the model's power. The true average degree was 94.1, while the raw BFS sample estimated it at ~324 (a 250% overestimation). Applying the proposed $RG(p_k)$-based correction brought the estimate down to 85.4, vastly closer to the ground truth than strictly unbiased arbitrary-topology estimators, which often suffer from high variance.
Conclusion and Future Work
While the core analytical model assumes a random graph structure, it remains highly effective for real-world networks with clustering and assortativity. The authors note that quantifying this node-degree bias is a vital first step toward developing estimators that can eventually correct for biases in global topological metrics, such as graph diameter or average shortest path length, which remain a challenge for future research.
Summary updated