Graph Reconstruction with a Connected Components Oracle

Juha Harviainen, Pekka ParviainenarXiv 2025 · DOI

Introduction

Graph Reconstruction (GR) is a fundamental problem in network science and combinatorial optimization. It involves uncovering the structure of a hidden graph $G = (V, E)$ by making queries to an oracle. This problem has significant implications in fields like bioinformatics, where researchers attempt to map protein-protein interaction networks, or in social network analysis, where hidden connections must be inferred from group behaviors.

While previous research has focused on oracles that provide limited information—such as whether a set of vertices is independent or how many connected components exist—this paper introduces the Connected Components (CC) oracle. When queried with a subset of vertices $S \subseteq V$, the CC oracle returns the exact partition of $S$ into its connected components in the induced subgraph $G[S]$. This paper investigates how this richer information source can be leveraged to reconstruct graphs with bounded structural parameters more efficiently.

Algorithmic Strategies

The authors propose several algorithms tailored to specific graph families, demonstrating that reconstruction is "fixed-parameter tractable" in terms of query complexity. If a graph is "locally simple," the total number of vertices $n$ only affects the query count logarithmically.

1. Randomized Sampling for Bounded Degree ($\Delta$)

To determine if an edge exists between two vertices $u$ and $v$, the algorithm samples subsets of vertices. If $u$ and $v$ appear in different components in a subset where no neighbors of $u$ were selected, the pair is identified as a "non-edge." This approach allows for the discovery of edges by ruling out their absence through randomized trials.

2. Treewidth-based Reconstruction

For graphs with bounded treewidth ($k$), the authors exploit the existence of small separators. The algorithm first constructs a "supergraph" containing all true edges plus some false positives. A deterministic pruning process then uses the CC oracle to systematically remove these false positives by identifying vertex sets that separate nodes in the hidden graph.

3. Iterative Peeling for Degeneracy ($d$)

Degenerate graphs, such as planar graphs, possess the property that every subgraph contains at least one vertex with a low degree. The algorithm identifies these low-degree vertices, maps their neighbors, and then "peels" them away. This iterative simplification reduces the problem to smaller and smaller subgraphs until the entire structure is revealed.

4. Derandomization

The paper also provides methods to convert randomized strategies into deterministic ones. By utilizing p-Query-Schemes and splitters, the authors ensure that every possible "witness" (a set of vertices proving two nodes are disconnected) is eventually queried, providing rigorous performance guarantees without relying on chance.

The Power of Adaptivity

A central finding of the research is the massive gap between non-adaptive and adaptive query strategies. In a non-adaptive setting, where all queries must be decided before any results are known, the complexity remains $\Omega(n^2)$ for many graph types. However, with just a few rounds of adaptivity—where subsequent queries depend on previous answers—the complexity drops dramatically to $O(\text{poly}(\text{parameter}) \cdot \log n)$. This highlights that the CC oracle's true power lies in its ability to guide subsequent exploration based on the partitions it reveals.

Key Results and Complexity Bounds

The paper establishes comprehensive upper and lower bounds for query complexity across various graph parameters. The results show that the CC oracle is strictly more powerful than other common oracles, such as the "separation oracle" used in learning Markov networks.

Summary of upper bounds for query complexity using the CC oracle.

As shown in the upper bounds table, the complexity for bounded degree graphs is $O(\Delta^2 \log n)$ for randomized adaptive algorithms. For treewidth, the randomized complexity is $O(k^2 \log n)$, while the deterministic existence result is $O(k^3 \log n)$.

Summary of lower bounds and the non-adaptive gap.

The lower bounds table confirms that these algorithms are near-optimal, with the query complexity being $\Omega(\min\{m, \Delta^2, k^2, d^2\})$. Notably, Corollary 22 emphasizes the necessity of adaptivity: even for simple graphs where $k=2$, a non-adaptive approach requires $\Omega(n^2)$ queries.

Conclusion and Future Directions

This work demonstrates that the Connected Components oracle provides a highly efficient "query language" for graph reconstruction. By focusing on structural parameters like treewidth and degeneracy, the authors show that large-scale networks can be mapped with a surprisingly small number of queries.

Future research may address the practical limitations of this model, such as the impact of "noisy" oracle responses or constraints on the size of the vertex subsets that can be queried. Adapting these theoretical breakthroughs to handle the uncertainties of real-world biological or social data remains a significant and promising challenge.

Summary updated

BibTeX
@misc{harviainen2025graph,
  author = {Juha Harviainen and Pekka Parviainen},
  title = {{Graph Reconstruction with a Connected Components Oracle}},
  year = {2025},
  eprint = {2509.05002},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.05002},
}
Figure