Lune

STOC2025Top-tier venue

Approximately Counting and Sampling Hamiltonian Motifs in Sublinear Time

Talya Eden, Reut Levi, Dana Ron, Ronitt Rubinfeld

Abstract

Counting small subgraphs, referred to as motifs, in large graphs is a fundamental task in graph analysis, extensively studied across various contexts and computational models. In the sublinear-time regime, the relaxed problem of approximate counting has been explored within two prominent query frameworks: the standard model, which permits degree, neighbor, and pair queries, and the strictly more powerful augmented model, which additionally allows for uniform edge sampling. Currently, in the standard model, (optimal) results have been established only for approximately counting edges, stars, and cliques, all of which have a radius of one. This contrasts sharply with the state of affairs in the augmented model, where algorithmic results (some of which are optimal) are known for any input motif, leading to a disparity which we term the "scope gap" between the two models.

In this work, we make significant progress in bridging this gap. Our approach draws inspiration from recent advancements in the augmented model and utilizes a framework centered on counting by uniform sampling, thus allowing us to establish new results in the standard model and simplify on previous results.

In particular, our first, and main, contribution is a new algorithm in the standard model for approximately counting any Hamiltonian motif in sublinear time, where the complexity of the algorithm is the sum of two terms. One term equals the complexity of the known algorithms by Assadi, Kapralov, and Khanna (ITCS 2019) and Fichtenberger and Peng (ICALP 2020) in the (strictly stronger) augmented model and the other is an additional, necessary, additive overhead.

Our second contribution is a variant of our algorithm that enables nearly uniform sampling of these motifs, a capability previously limited in the standard model to edges and cliques. Our third contribution is to introduce even simpler algorithms for stars and cliques by exploiting their radius-one property. As a result, we simplify all previously known algorithms in the standard model for stars (Gonen, Ron, Shavitt ( SODA 2010)), triangles (Eden, Levi, Ron Seshadhri (FOCS 2015)) and cliques (Eden, Ron, Seshadri (STOC 2018)).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on3

  1. Faster sublinear approximation of the number of k-cliques in low-arboricity graphsTalya Eden, Dana Ron, C. SeshadhriSODA 2020 · 17 citations
  2. Edge sampling and graph parameter estimation via vertex neighborhood accessesJakub Tetek, Mikkel ThorupSTOC 2022 · 12 citations
  3. Nearly optimal edge estimation with independent set queriesXi Chen, Amit Levi, Erik WaingartenSODA 2020 · 5 citations

Related papers

  1. Approximately counting and sampling small witnesses using a colourful decision oracleHolger Dell, John Lapinskas, Kitty MeeksSODA 2020 · 13 citations
  2. Scalable Approximate Butterfly and Bi-triangle Counting for Large Bipartite NetworksFangyuan Zhang, Dechuang Chen, Sibo Wang, Yin Yang et al.SIGMOD 2024 · 8 citations
  3. Faster Estimation of the Average Degree of a Graph Using Random Edges and Structural QueriesLorenzo Beretta, Deeparnab Chakrabarty, C. SeshadhriSODA 2026
  4. Neural Subgraph Counting with Wasserstein EstimatorHanchen Wang, Rong Hu, Ying Zhang, Lu Qin et al.SIGMOD 2022 · 37 citations
  5. MOSER: Scalable Network Motif Discovery using Serial TestMohammad Matin Najafi, Chenhao Ma, Xiaodong Li, Reynold Cheng et al.VLDB 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines