arXiv:2609.07253cs.DCSep 2026

Manuscript Offprint

arXiv:2609.07253

The Maximum Mutual Visibility Set on a Cactus Graph and the Self-stabilizing Constructions

Yonghwan Kim, Yuichi Sudo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Given a graph G=(V,E)G = (V, E), let S(⊆V)S \left( \subseteq V \right) be a set of vertices. Two vertices are mutually visible if there exists a shortest path in GG between them that does not contain any other vertex of SS. A set SS is a Mutual Visibility Set (MVS) if every pair of vertices in SS is mutually visible.

The concept of MVSs in graphs has attracted significant attention since its introduction, as it provides an important structural property of graphs. However, determining a maximum MVS in general graphs is computationally intractable; the decision problem of whether a graph admits an MVS of size at least kk has been shown to be NP-complete. Thus, prior work has focused on finding maximal MVSs or restricting attention to specific graph classes.

Cactus graphs form a fundamental low-treewidth class, yet the maximum MVS problem for this class remains open. In this paper, we first determine the size of maximum MVS in cactus graphs, and introduce two self-stabilizing algorithms that construct such sets. The first algorithm uses a single BFS tree and stabilizes in O(D)O(D) rounds with O(log⁡n)O(\log n) bits per process on average; the second one uses parallel BFS trees and stabilizes in O(∣Cmax⁡∣+∣Tmax⁡∣)O(|C_{\max}| + |T_{\max}|) rounds, which we show to be asymptotically tight as a function of these two parameters, even on graphs where ∣Cmax⁡∣+∣Tmax⁡∣=o(D)|C_{\max}| + |T_{\max}| = o(D).

2012 ACM Subject Classification Mathematics of computing →\to Graph theory; Computing methodologies →\to Distributed algorithms

Keywords and phrases mutual visibility, cactus graph, self-stabilization

Acknowledgements This work was supported by JSPS KAKENHI Grant Numbers JP23K24825, JP25K03078, JP25K03079, JP26K02865, JP26K23809, and JST FOREST Program JPMJFR226U.

1 Introduction

Distributed systems must cope with the absence of a global clock, only partial knowledge of the global state, and transient faults that silently drive the system into an illegitimate configuration. A self-stabilizing algorithm [10] tolerates such faults by guaranteeing convergence to a legitimate configuration within finite time from any initial configuration, without external intervention.

A natural structural question in distributed network settings is which subsets of processors can communicate efficiently without mutual interference. This is captured by the notion of a Mutual Visibility Set (MVS), introduced by Di Stefano [21]. Given a graph G=(V,E)G = (V, E), a set S⊆VS \subseteq V is an MVS if every pair of vertices in SS is connected by a shortest path whose internal vertices all lie outside SS. In a distributed system modeled by GG, a maximum MVS is the largest set of processes that can be connected pairwise by shortest paths none of which is routed through another member of the set. This is the natural formalisation of a network of mutually distrusting parties—each party is willing to relay traffic for others, but is not willing to have its own traffic relayed by a peer, so that any two members must be joined by a shortest path whose intermediate vertices are all non-members. The same condition arises when the members of the set are the end-points of concurrent shortest-path communications and a member must not be forced to act as a relay while it is itself communicating. Mutual visibility originates in the study of mobile robots with obstructed visibility, where a robot

© Yonghwan Kim;

licensed under Creative Commons License CC-BY 4.0

Leibniz International Proceedings in Informatics

Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

XX:2 A Maximum Mutual Visibility Set on a Cactus Graph

blocks the line of sight of two robots collinear with it [20], and the graph version studied here replaces lines of sight by shortest paths [21].

The mutual visibility number (MVN), denoted μ(G)\mu(G), is the size of the largest MVS on the given graph. Determining a maximum MVS or finding MVN is computationally intractable on general graphs [21] and hard to approximate for large diameter [2]. Motivated by these hardness barriers, prior work has restricted attention to specific graph classes, obtaining exact formulas for paths, cycles, block graphs, cographs, grids, and distance-hereditary graphs [21, 4], as well as various graph products [6, 18]. Despite this sustained activity, the MVN of cactus graphs—a fundamental class of low-treewidth graphs that generalizes both trees and cycles—has not been determined.

In this paper we resolve the case of cactus graphs. We establish the exact MVN of any cactus graph via a closed-form formula, and propose two self-stabilizing algorithms that construct a maximum MVS. Our contributions are as follows.

  1. We introduce a cycle-tree decomposition of a cactus graph GG and classify each cycle component as a zero-cycle, unit-cycle, twin-cycle, or latent twin-cycle, leading to the exact formula μ(G)=2n2+nlt+n1+ℓ(G)\mu(G) = 2n_2 + n_{\mathrm{lt}} + n_1 + \ell(G), where n1,n2,nltn_1, n_2, n_{\mathrm{lt}}, and ℓ(G)\ell(G) denote the numbers of unit-cycles, twin-cycles, latent twin-cycles, and leaves of GG, respectively. No exact characterization of the MVN for cactus graphs was previously known.

  2. We propose Algorithm 1, a self-stabilizing algorithm that constructs a maximum MVS using a single-root BFS tree. It stabilizes in O(D)O(D) rounds and uses O(log⁡n)O(\log n) bits per process on average, where DD is the diameter of GG and n=∣V∣n = |V|.

  3. We propose Algorithm 2, a self-stabilizing algorithm that runs parallel BFS trees from all high-degree vertices, enabling component-wise early termination. It stabilizes in O(∣Cmax⁡∣+∣Tmax⁡∣)O(|C_{\max}| + |T_{\max}|) rounds, where ∣Cmax⁡∣|C_{\max}| and ∣Tmax⁡∣|T_{\max}| are the sizes of the largest cycle component and of the largest tree component of GG. This bound is component-local: we exhibit a family of cactus graphs on which ∣Cmax⁡∣+∣Tmax⁡∣|C_{\max}| + |T_{\max}| is an arbitrarily small fraction of DD and on which every correct self-stabilizing algorithm nevertheless requires Ω(∣Cmax⁡∣+∣Tmax⁡∣)\Omega(|C_{\max}| + |T_{\max}|) rounds, so the bound is asymptotically tight as a function of these two parameters.

Both algorithms operate under the distributed daemon—the weakest standard scheduling assumption—and are guaranteed to converge to a maximum MVS from any initial configuration.

The rest of the paper is organized as follows. Section 2 reviews related work. Section 3 derives the MVN formula for cactus graphs and gives all of its proofs. Section 4 fixes the computational model, describes the two self-stabilizing algorithms, gives the complete set of rules of Algorithm 1 together with their correctness and complexity analysis, and proves the lower bound that makes the stabilization time of Algorithm 2 asymptotically tight. Section 5 concludes with open problems. This is the full version of the paper: every proof is given in place, and the parts that a page-limited presentation can only summarise — the rules of Algorithm 1, the layered analysis on which the round complexity rests, and the construction of the lower-bound family — are developed here in detail.