A note on approximating the average degree of bounded arboricity graphs

Talya Eden, C. SeshadhriarXiv 2026

TL;DR

This paper provides a clean, streamlined presentation of the Eden-Ron-Seshadhri (ERS) sublinear algorithm for estimating a graph's average degree. By leveraging graph arboricity and a clever parameter-doubling scheme, the algorithm achieves an optimal $(1+\varepsilon)$-approximation in $O(\varepsilon^{-2}\alpha/d)$ queries, completely eliminating the logarithmic overhead typical of previous approaches.

What Problem Does This Paper Address?

Estimating the average degree ($d$) of a massive graph in sublinear time is a foundational problem in property testing and graph algorithms. Standard approaches require querying the graph via random vertex selection, degree checks, and random neighbor lookups.

While early algorithms achieved sublinear time, they were often highly complex, relying on intricate "bucketing" techniques that introduced messy logarithmic and $\varepsilon$ overhead factors. A previous paper (ERS 2017/2019) introduced a simpler approach tied to graph arboricity (a measure of how dense a graph's subgraphs can be), but the clean analysis was buried deep within a larger result and still suffered from log-factor losses due to parameter search. This note isolates, simplifies, and optimizes that algorithm to remove these losses.

Methods

The authors present the ERS algorithm, which operates in the standard adjacency list query model (vertex samples, degree queries, and neighbor queries). The core mechanism relies on a "degree ordering" where edges are implicitly directed from lower-degree vertices to higher-degree vertices (with ID tie-breaking).

The algorithm repeatedly samples a random vertex $u$ and a random neighbor $v$. It defines an estimator $X_i$: if $u$ precedes $v$ in the degree ordering, $X_i = 2d_u$; otherwise, $X_i = 0$. Using the Chiba-Nishizeki lemma, the authors show that the expected value of $X_i$ is exactly the average degree $d$, and its variance is tightly bounded by the graph's arboricity $\alpha$.

To avoid losing logarithmic factors during parameter search (since $d$ is unknown), the algorithm uses a clever doubling scheme: it starts with a small sample size $s$ and a high threshold $\tau$, and iteratively doubles $s$ while halving $\tau$ until a termination condition is met. For general graphs where arboricity is unknown, a slight modification (ERS-gen, which halves $\tau$ by a factor of 4 instead of 2) yields an optimal query complexity based on the number of vertices $n$.

Datasets

Not discussed in the paper. (The paper is purely theoretical and does not use empirical datasets or simulations).

Key Insights and Ideas

  • Arboricity Controls Variance: The most elegant insight is that graph arboricity ($\alpha$) naturally bounds the variance of the simple degree estimator. Because arboricity limits dense subgraphs, it prevents a few massive-degree vertices from skewing the random neighbor queries too drastically.
  • Clean Parameter Search: Typically, searching for unknown graph parameters introduces a $\log n$ or $\log(1/\varepsilon)$ penalty. Here, by carefully balancing the sample size $s$ and the threshold $\tau$ such that their product $s\tau$ remains constant across iterations, the cost of the final iteration dominates the total query complexity, eliminating the log factors entirely.

Key Results

  • Bounded Arboricity Graphs: Given an upper bound $\alpha$ on arboricity, the ERS algorithm outputs a $(1 \pm \varepsilon)$-approximation of the average degree $d$ with success probability $> 2/3$ using only $O(\varepsilon^{-2}\alpha/d)$ queries. Crucially, this does not require knowing the total number of vertices $n$.
  • General Graphs: When arboricity is unknown but $n$ is known, the modified ERS-gen algorithm achieves a query complexity of $O(\varepsilon^{-2}\sqrt{n/d})$, matching known lower bounds.

Limitations and Future Work

  • The "Unknown $n$ and $\alpha$" Barrier: The general algorithm (ERS-gen) strictly requires knowing the total number of vertices $n$ to initialize its threshold ($\tau = n$). If both $n$ and $\alpha$ are unknown, one must resort to birthday-paradox style sampling to estimate $n$, which degrades the query complexity to $O(\varepsilon^{-2}\sqrt{n})$. The authors note a known lower bound of $\Omega(\min(\sqrt{n}, n/d))$ in this setting, proving that knowing $n$ is fundamentally necessary to achieve the optimal $\sqrt{n/d}$ complexity.

Summary updated

BibTeX
@misc{eden2026note,
  author = {Talya Eden and C. Seshadhri},
  title = {{A note on approximating the average degree of bounded arboricity graphs}},
  year = {2026},
  eprint = {2603.08694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.08694},
}
Figure