arXiv:2610.21299cs.DSOct 2026

Manuscript Offprint

arXiv:2610.21299

Testing Connectedness and Edge Connectedness

Diptaksho Palit, Ramesh Krishnan S. Pallavoor, Sofya Raskhodnikova, Nithin Varma

Abstract

We revisit the classical problem of testing connectedness of graphs represented in the adjacency lists model and obtain optimal bounds. Specifically, we show that ε\varepsilon-testing connectedness of graphs with maximum degree at most dd requires Ω(1εlog⁡1εd)\Omega(\frac{1}{\varepsilon}\log\frac{1}{\varepsilon d}) queries (when ε≤14d5\varepsilon \leq \frac{1}{4d^5}). Our result implies that the connectedness tester of Levi, Pallavoor, Raskhodnikova, and Varma (ACM Trans. Comput. Theory, 2022) is optimal. We also study the problem of testing kk-edge-connectedness of both directed and undirected graphs of average degree d‾\overline{d} in the adjacency lists model and design a tester with query complexity O(kεlog⁡1εd)O(\frac{k}{\varepsilon}\log\frac{1}{\varepsilon d}), improving upon the bounds by Forster, Nanongkai, Saranurak, Yang, and Yingchareonthawornchai (SODA '20). Furthermore, we complement our upper bound by showing that every one-sided error kk-edge-connectedness tester must make Ω(k/ε)\Omega(k/\varepsilon) queries.

1 Introduction

Edge connectedness is a fundamental graph property and is a measure of the fault tolerance of a network that the graph represents. For integer k≥1k \geq 1, an undirected (directed, respectively) graph GG is kk-edge-connected, or simply kk-connected, if at least kk edges must be removed from GG in order to make the graph disconnected (not strongly connected, respectively).

The problem of efficiently determining if a graph is k-connected has been studied under various computational models and is one of the earliest problems considered in graph property testing [GR02]. The goal of an ε\varepsilon-tester for k-edge-connectedness is to determine, with probability at least 2/3, whether a given graph G=(V,E)G = (V, E) is k-connected, or whether an ε∈(0,1)\varepsilon \in (0,1) fraction of the representation of G needs to be modified in order to obtain a k-connected graph. We consider graphs represented as adjacency lists and algorithms that access the graph via neighbor and degree queries. Formally, a neighbor query specifies a vertex u∈Vu \in V and an integer i, upon which an oracle returns the i-th (out-)neighbor of u, if it exists. Similarly, a degree query specifies a vertex u, upon which an oracle returns the (out-)degree of u.

∗^{*}The conference version of this paper will appear at SOSA 2027.

The model. We work in the adjacency lists model for general graphs (also called the unbounded-degree incidence-lists model): a graph with m edges is ε\varepsilon-far from a property if at least εm\varepsilon m edge modifications are needed to obtain a graph with the property, and, as in prior work on testing connectedness in this model [LPRV22, FNS +^{+}20], the algorithm knows the number of vertices n and the average degree d‾\overline{d} (equivalently, m). This model differs from the bounded-degree model of Goldreich and Ron [GR02], in which the algorithm knows an upper bound d on all degrees, distance is measured relative to nd rather than m, and the modified graph must also respect the degree bound. In the general model, degrees can be highly non-uniform, and a tester has to adapt the amount of work it invests to the degrees of the vertices it samples. For directed graphs, we assume, as in [OR11, FNS +^{+}20], that both outgoing and incoming adjacency lists (and degrees) can be queried; if only outgoing lists can be queried, testing strong connectedness requires Ω(n)\Omega(\sqrt{n}) queries [BR02].

State of the art. For general kk, the best known testers are due to Forster, Nanongkai, Saranurak, Yang, and Yingchareonthawornchai [FNS+^{+}20], for both directed and undirected graphs. In the general model, their testers make O~(k/ε2)\tilde{O}(k/\varepsilon^{2}) queries, and O~(min⁡{k/ε2,1/ε3})\tilde{O}(\min\{k/\varepsilon^{2}, 1/\varepsilon^{3}\}) queries for simple directed graphs, even when d‾\overline{d} is unknown [FNS+^{+}20, Theorem 1.3]. When d‾\overline{d} is known, as in our setting, their bounds are O~(k2/(ε2d‾))\tilde{O}(k^{2}/(\varepsilon^{2}\overline{d})) and O~(min⁡{k2/(ε2d‾),k/(ε3d‾)})\tilde{O}(\min\{k^{2}/(\varepsilon^{2}\overline{d}), k/(\varepsilon^{3}\overline{d})\}), respectively [FNS+^{+}20, Theorem 6.1]; these are never worse, since one may then assume d‾≥k\overline{d} \geq k. In the bounded-degree model, their testers make O~(k/ε)\tilde{O}(k/\varepsilon) queries [FNS+^{+}20, Theorem 1.4]. These bounds were an exponential improvement, in terms of the dependence on kk, over prior results [YI10, OR11]. For the important special case of undirected connectedness (k=1k=1), the best known tester has query complexity O(min⁡{1(εd‾)2,1εlog⁡1εd‾})O\left(\min\left\{\frac{1}{(\varepsilon\overline{d})^{2}}, \frac{1}{\varepsilon}\log\frac{1}{\varepsilon\overline{d}}\right\}\right) [LPRV22].