On the sizes of generalized cactus graphs

Licheng Zhang, Yuanqiu Huang

Abstract

A cactus graph is a connected graph where each edge belongs to at most one cycle. This paper generalizes this concept to $k$-cactus graphs, where an edge can belong to up to $k$ cycles. We characterize the structure of these graphs for $k=2, 3, 4$ and provide tight upper bounds on their edge counts. For 2-connected $k$-cactus graphs, we prove a universal bound of $n+k-1$ edges, solving the problem for all positive integers $k$ in the 2-connected case.

Introduction

Cactus graphs are a well-studied class in graph theory, sitting in a complexity "sweet spot" between trees and general graphs. A standard cactus graph with $n$ vertices is known to have at most $\lfloor \frac{3}{2}(n-1) \rfloor$ edges. This research explores the extremal properties of $k$-cactus graphs, seeking the maximum number of edges possible when the cycle constraint is relaxed to $k$. The challenge lies in identifying the specific configurations that maximize edge density without violating the $k$-cycle limit.

Methodology: Block and Ear Decompositions

To analyze the maximum size of a $k$-cactus, the authors decompose the graph into its "blocks" (maximal subgraphs without cut-vertices). The total edge count of the graph is simply the sum of the edges in its constituent blocks. For 2-connected blocks, the authors utilize ear decomposition, a method that views a graph as a base cycle with a sequence of "ears" (paths) added between existing vertices.

Structural analysis of ear additions ($Q$) to existing paths ($P^1, P^2, P^3$) to maintain the $k$-cycle constraint.

By examining how new ears create additional cycles (as illustrated in the figure above), the authors established a fundamental "ear limit": a 2-connected $k$-cactus can have at most $k-1$ ears added to its base cycle. This provides a hard ceiling on the density of any single block.

Key Insights: Theta Graphs as Extremal Blocks

The density of a $k$-cactus is driven by the structure of its blocks. For small $k$, the densest blocks are often theta graphs—two vertices connected by multiple internally disjoint paths. For $k=2$ and $k=3$, the extremal graphs are largely built by "gluing" together specific theta graphs like $\theta(1, 2, 2)$.

Specific theta-like configurations, such as $\theta(1, 2, 2, 2)$, $\tilde{\theta}_1$, and $\tilde{\theta}_2$, which serve as the building blocks for extremal 4-cactus graphs.

However, the authors discovered that the pattern for $k=2$ and $k=3$ does not perfectly scale to $k=4$. The $k=4$ case requires a more diverse set of block structures, including the $\tilde{\theta}_1$ and $\tilde{\theta}_2$ configurations shown above. These architectures allow for higher edge counts while ensuring no single edge participates in more than four cycles.

Key Results

The study establishes the following tight upper bounds for the number of edges $|E(G)|$ in a $k$-cactus with $n$ vertices:

  • 2-connected $k$-cactus: $|E(G)| \le n + k - 1$ (Tight for $n \ge k+2$).
  • General 2-cactus: $|E(G)| \le \lfloor \frac{5}{3}(n-1) \rfloor$.
  • General 3-cactus: $|E(G)| \le \lfloor \frac{7}{4}(n-1) \rfloor$.
  • General 4-cactus:
    • $|E(G)| \le 2n - 2$ if $n \equiv 1 \pmod 3$.
  • $|E(G)| \le 2n - 3$ otherwise.

Limitations and Future Work

While the problem is solved for $k \le 4$, the case for $k \ge 5$ remains open. As $k$ increases, the number of ways to add ears while staying within the cycle limit grows exponentially, making the case-by-case block characterization used here increasingly difficult. Additionally, determining the best bounds when the number of vertices $n$ is small relative to $k$ (specifically $n < k+1$) remains a mystery.

Summary updated

Abstract

A cactus is a connected graph in which each edge is contained in at most one cycle. We generalize the concept of cactus graphs, i.e., a $k$-cactus is a connected graph in which each edge is contained in at most $k$ cycles where $k\ge 1$. It is well known that every cactus with $n$ vertices has at most $\lfloor\frac{3}{2}(n-1) \rfloor$ edges. Inspired by it, we attempt to establish analogous upper bounds for general $k$-cactus graphs. In this paper, we first characterize $k$-cactus graphs for $2\le k\le 4$ based on the block decompositions. Subsequently, we give tight upper bounds on their sizes. Moreover, the corresponding extremal graphs are also characterized. However, the case of $k\ge 5$ remains open. For the case of 2-connectedness, the range of $k$ is expanded to all positive integers in our research. We prove that every $2$-connected $k ~(\ge 1)$-cactus graphs with $n$ vertices has at most $n+k-1$ edges, and the bound is tight if $n \ge k + 2$. But, for $n &lt; k+1$, determining best bounds remains a mystery except for some small values of $k$.
BibTeX
@article{zhang2024sizes,
  author = {Licheng Zhang and Yuanqiu Huang},
  title = {{On the sizes of generalized cactus graphs}},
  journal = {Discret. Appl. Math},
  year = {2024},
  doi = {10.1016/j.dam.2024.01.043},
}
Figure