Large cliques or overlapping collections of cliques can make adjacency lists highly redundant, even in sparse graphs. We exploit this structure through clique-cover representations that support graph computation directly in compressed form. Given an edge clique cover $C$ of total size $σ(C):=\sum_{C_\ell\in C}|C_\ell|$, our cover-parsimonious algorithms use $\tilde{O}(σ(C))$ time and $O(σ(C))$ space. They include breadth-first and depth-first search forests, a $3/2$-approximation of maximum matching, and a $2$-approximation of minimum weighted vertex cover, all in $O(σ(C))$ time. We also obtain a $(3/2+ε)$-approximation of maximum vertex-weighted matching in $\tilde{O}(σ(C))$ time for any fixed $ε>0$. We prove that minimizing total cover size on $n$-vertex graphs admits no polynomial-time $n^c$-approximation for some constant $c>0$ unless $P=NP$. We introduce concise clique covers, in which no two cliques can be merged and total size is $O(m)$. For an $n$-vertex, $m$-edge graph of degeneracy $d$, we construct a concise cover of size $O(\min\{m,n\sqrtμ\})$ in $\tilde{O}(d^2\min\{m,μ\})$ time and $O(m)$ space, where $μ:=\binom{n}{2}-m+1$. This size bound is sublinear in $m$ whenever $μ=o(n^2)$. On 48 real and synthetic graphs with up to 24 billion edges, our two constructions achieve near-optimal total sizes and geometric-mean compression ratios of 731 and 562 relative to adjacency lists, with the largest exceeding four orders of magnitude. For all 240 graph-algorithm pairs, our implementations run faster than counterparts using WebGraph and Zuckerli compressed adjacency lists. Median speedups are 4,700 and 4,900, respectively, and median peak-memory reduction factors are 4.9 and 4.5, with maxima exceeding six and two orders of magnitude, respectively.
翻译:暂无翻译