# Cactus graph

In graph theory, a cactus (sometimes called a cactus tree) is a connected graph in which any two simple cycles have at most one vertex in common. Equivalently, it is a connected graph in which every edge belongs to at most one simple cycle, or (for nontrivial cactus) in which every block (maximal subgraph without a cut-vertex) is an edge or a cycle.

## Properties

Cacti are outerplanar graphs. Every pseudotree is a cactus. A nontrivial graph is a cactus if and only if every block is either a simple cycle or a single edge.

The family of graphs in which each component is a cactus is downwardly closed under graph minor operations. This graph family may be characterized by a single forbidden minor, the four-vertex diamond graph formed by removing an edge from the complete graph K4.[1]

## Triangular cactus

A triangular cactus is a special type of cactus graph such that each cycle has length three. For instance, the friendship graphs, graphs formed from a collection of triangles joined together at a single shared vertex, are triangular cacti. As well as being cactus graphs the triangular cacti are also block graphs.

The largest triangular cactus in any graph may be found in polynomial time using an algorithm for the matroid parity problem. Since triangular cactus graphs are planar graphs, the largest triangular cactus can be used as an approximation to the largest planar subgraph, an important subproblem in planarization. As an approximation algorithm, this method has approximation ratio 4/9, the best known for the maximum planar subgraph problem.[2]

The algorithm for finding the largest triangular cactus is associated with a theorem of Lovász and Plummer that characterizes the number of triangles in this largest cactus.[3] Lovász and Plummer consider pairs of partitions of the vertices and edges of the given graph into subsets, with the property that every triangle of the graph either has two vertices in a single class of the vertex partition or all three edges in a single class of the edge partition; they call a pair of partitions with this property valid. Then the number of triangles in the largest triangular cactus equals the maximum, over pairs of valid partitions ${\displaystyle {\mathcal {P}}=\{V_{1},V_{2},\dots ,V_{k}\}}$ and ${\displaystyle {\mathcal {Q}}=\{E_{1},E_{2},\dots ,E_{m}\}}$, of

${\displaystyle \sum _{i=1}^{m}{\frac {(u_{i}-1)}{2}}+n-k,}$,

where ${\displaystyle n}$ is the number of vertices in the given graph and ${\displaystyle u_{i}}$ is the number of vertex classes met by edge class ${\displaystyle E_{i}}$.

Recently, a tight extremal bound was proven[4] which showed that given any plane graph ${\displaystyle G}$, there always exist a cactus subgraph ${\displaystyle C\subseteq G}$ containing at least ${\displaystyle 1/6}$ fraction of the triangular faces of ${\displaystyle G}$. This result implies a direct analysis of the 4/9 - approximation algorithm for maximum planar subgraph problem without using the above min-max formula.

### Rosa's Conjecture

An important conjecture related to the triangular cactus is the Rosa's Conjecture, named after Alexander Rosa, which says that all triangular cacti are graceful or nearly-graceful.[5] More precisely

All triangular cacti with t ≡ 0, 1 mod 4 blocks are graceful, and those with t ≡ 2, 3 mod 4 are near graceful.

## Algorithms and applications

Some facility location problems which are NP-hard for general graphs, as well as some other graph problems, may be solved in polynomial time for cacti.[6][7]

Since cacti are special cases of outerplanar graphs, a number of combinatorial optimization problems on graphs may be solved for them in polynomial time.[8]

Cacti represent electrical circuits that have useful properties. An early application of cacti was associated with the representation of op-amps.[9][10][11]

Cacti have also recently been used in comparative genomics as a way of representing the relationship between different genomes or parts of genomes.[12]

If a cactus is connected, and each of its vertices belongs to at most two blocks, then it is called a Christmas cactus. Every polyhedral graph has a Christmas cactus subgraph that includes all of its vertices, a fact that plays an essential role in a proof by Leighton & Moitra (2010) that every polyhedral graph has a greedy embedding in the Euclidean plane, an assignment of coordinates to the vertices for which greedy forwarding succeeds in routing messages between all pairs of vertices.[13]

In topological graph theory, the graphs whose cellular embeddings are all planar are exactly the subfamily of the cactus graphs with the additional property that each vertex belongs to at most one cycle. These graphs have two forbidden minors, the diamond graph and the five-vertex friendship graph.[14]

## History

Cacti were first studied under the name of Husimi trees, bestowed on them by Frank Harary and George Eugene Uhlenbeck in honor of previous work on these graphs by Kôdi Husimi.[15][16] The same Harary–Uhlenbeck paper reserves the name "cactus" for graphs of this type in which every cycle is a triangle, but now allowing cycles of all lengths is standard.

Meanwhile, the name Husimi tree commonly came to refer to graphs in which every block is a complete graph (equivalently, the intersection graphs of the blocks in some other graph). This usage had little to do with the work of Husimi, and the more pertinent term block graph is now used for this family; however, because of this ambiguity this phrase has become less frequently used to refer to cactus graphs.[17]

## References

1. El-Mallah, Ehab; Colbourn, Charles J. (1988), "The complexity of some edge deletion problems", IEEE Transactions on Circuits and Systems, 35 (3): 354–362, doi:10.1109/31.1748
2. Călinescu, Gruia; Fernandes, Cristina G; Finkler, Ulrich; Karloff, Howard (2002), "A Better Approximation Algorithm for Finding Planar Subgraphs", Journal of Algorithms, 2, 27 (2): 269–302, CiteSeerX 10.1.1.47.4731, doi:10.1006/jagm.1997.0920
3. Lovász, L.; Plummer, M.D. (2009), Matching Theory, AMS Chelsea Publishing Series, ISBN 9780821847596
4. Chalermsook, Parinya; Schmid, Andreas; Uniyal, Sumedha (2019), "A Tight Extremal Bound on the Lovasz Cactus Number in Planar Graphs", CoRR, abs/1804.03485, arXiv:1804.03485, doi:10.4230/LIPIcs.STACS.2019.19
5. Rosa, A. (1988), "Cyclic Steiner Triple Systems and Labelings of Triangular Cacti", Scientia, 1: 87–95.
6. Ben-Moshe, Boaz; Bhattacharya, Binay; Shi, Qiaosheng (2005), "Efficient algorithms for the weighted 2-center problem in a cactus graph", Algorithms and Computation, 16th Int. Symp., ISAAC 2005, Lecture Notes in Computer Science, 3827, Springer-Verlag, pp. 693–703, doi:10.1007/11602613_70, ISBN 978-3-540-30935-2
7. Zmazek, Blaz; Zerovnik, Janez (2005), "Estimating the traffic on weighted cactus networks in linear time", Ninth International Conference on Information Visualisation (IV'05), pp. 536–541, doi:10.1109/IV.2005.48, ISBN 978-0-7695-2397-2
8. Korneyenko, N. M. (1994), "Combinatorial algorithms on a class of graphs", Discrete Applied Mathematics, 54 (2–3): 215–217, doi:10.1016/0166-218X(94)90022-1. Translated from Notices of the BSSR Academy of Sciences, Ser. Phys.-Math. Sci., (1984) no. 3, pp. 109-111 (in Russian)
9. Nishi, Tetsuo; Chua, Leon O. (1986), "Topological proof of the Nielsen-Willson theorem", IEEE Transactions on Circuits and Systems, 33 (4): 398–405, doi:10.1109/TCS.1986.1085935
10. Nishi, Tetsuo; Chua, Leon O. (1986), "Uniqueness of solution for nonlinear resistive circuits containing CCCS's or VCVS's whose controlling coefficients are finite", IEEE Transactions on Circuits and Systems, 33 (4): 381–397, doi:10.1109/TCS.1986.1085934
11. Nishi, Tetsuo (1991), "On the number of solutions of a class of nonlinear resistive circuit", Proceedings of the IEEE International Symposium on Circuits and Systems, Singapore, pp. 766–769
12. Paten, Benedict; Diekhans, Mark; Earl, Dent; St. John, John; Ma, Jian; Suh, Bernard; Haussler, David (2010), "Cactus Graphs for Genome Comparisons", Research in Computational Molecular Biology, Lecture Notes in Computer Science, 6044, pp. 410–425, doi:10.1007/978-3-642-12683-3_27, ISBN 978-3-642-12682-6
13. Leighton, Tom; Moitra, Ankur (2010), "Some Results on Greedy Embeddings in Metric Spaces" (PDF), Discrete & Computational Geometry, 44 (3): 686–705, doi:10.1007/s00454-009-9227-6.
14. Nordhaus, E. A.; Ringeisen, R. D.; Stewart, B. M.; White, A. T. (1972), "A Kuratowski-type theorem for the maximum genus of a graph", Journal of Combinatorial Theory, Series B, 12 (3): 260–267, doi:10.1016/0095-8956(72)90040-8, MR 0299523
15. Harary, Frank; Uhlenbeck, George E. (1953), "On the number of Husimi trees, I", Proceedings of the National Academy of Sciences, 39 (4): 315–322, doi:10.1073/pnas.39.4.315, MR 0053893, PMC 1063779, PMID 16589268
16. Husimi, Kodi (1950), "Note on Mayers' theory of cluster integrals", Journal of Chemical Physics, 18 (5): 682–684, doi:10.1063/1.1747725, MR 0038903
17. See, e.g., MR0659742, a 1983 review by Robert E. Jamison of a paper using the other definition, which attributes the ambiguity to an error in a book by Mehdi Behzad and Gary Chartrand.