Abstract
Breadth-First Search (BFS) is a standard tool for sampling large networks, but it is notoriously biased toward high-degree nodes. This paper provides the first rigorous analytical characterization of this bias, proving that all common graph traversals (BFS, DFS, etc.) share the same bias in random graphs and offering a mathematical framework to correct these observations.
Introduction
When dealing with massive graphs like the Facebook social graph or the World Wide Web, researchers cannot crawl the entire network. Instead, they take a "representative" sample using techniques like Breadth-First Search (BFS). While it has been empirically observed that BFS over-represents "popular" (high-degree) nodes, the precise nature of this bias remained a mystery. Unlike Random Walks (RW), which are well-studied Markov processes, graph traversals like BFS are "sampling without replacement." This introduces complex dependencies between steps that make traditional statistical analysis difficult. This research quantifies exactly how much BFS skews the degree distribution as a function of the sampling fraction.
Theoretical Framework: The Stub-Level Analysis
The authors analyze the bias using the Configuration Model ($RG(p_k)$), a random graph model where nodes have a fixed degree distribution but edges are connected uniformly at random. To overcome the mathematical difficulty of "sampling without replacement," they introduce an elegant "stub-level" analysis. They treat every edge as two "stubs" (half-edges). By assigning each stub a random index between 0 and 1 and processing them in order, they transform the discrete traversal into a continuous-time process.
This allows for the derivation of an analytical formula for $q_k(f)$—the expected observed degree distribution when a fraction $f$ of the nodes has been sampled. Crucially, they also derive an unbiased estimator that allows researchers to work backward from a biased BFS sample to estimate the true underlying degree distribution of the network.
The Nature of Traversal Bias
One of the most surprising findings is the "Traversal Equivalence" Principle: in a random graph, BFS, DFS, Forest Fire, and Snowball sampling all result in the exact same degree bias. The specific order of exploration doesn't matter; the bias is purely a function of the node degrees and the fraction of the graph covered.
As shown in Figure 1, when a crawl first starts ($f \to 0$), the bias is identical to a standard Random Walk—it is linearly proportional to the node's degree. As more of the graph is crawled ($f \to 1$), the bias steadily decreases, eventually vanishing at 100% coverage.
Empirical Validation and the Role of Assortativity
The paper validates its theoretical findings using synthetic power-law graphs and a real-world Facebook dataset of over 250 million users. In the Facebook crawl, the BFS-sampled average degree was approximately 324, while the true average degree was only 94—a 3.5x overestimation.
The authors found that network structure significantly impacts bias. In graphs with positive assortativity (where popular nodes connect to other popular nodes), common in social networks, the BFS bias is even stronger than predicted by the random-graph model. Conversely, negative assortativity can suppress this bias. For researchers seeking unbiased node properties without post-processing, the Metropolis-Hastings Random Walk (MHRW) is recommended as it remains empirically unbiased across different graph types.
Conclusion
While BFS is a convenient tool for local neighborhood exploration, its inherent bias significantly distorts global network metrics. This work provides the mathematical tools to recognize and correct this bias. Future work aims to extend this model to incorporate higher-order structural properties like clustering and modularity, further refining the accuracy of social network sampling.
Summary updated