Manuscript Offprint
arXiv:2610.39430Diameter-two graphs whose mutual-visibility chromatic number equals their chromatic number
SIDDHESH CHAUBAL
ABSTRACT. A set of vertices of a graph is a mutual-visibility set if every pair of vertices of is joined by a shortest path whose internal vertices avoid , and the mutual-visibility chromatic number is the least number of mutual-visibility sets into which can be partitioned. Klavžar, Kuziak, Valenzuela Tripodoro and Yero (2025) proved that whenever has diameter two, observed that equality holds for complete bipartite graphs, and asked whether there are any other diameter-two graphs attaining equality. We answer this question in the affirmative. We construct a graph of order 11 and diameter two with , and an infinite family of such graphs obtained from by replacing one vertex with pairwise non-adjacent copies of it.
1. INTRODUCTION
Mutual visibility in graphs was introduced by Di Stefano [5], motivated by settings in which a set of entities placed at vertices of a network, such as mobile robots, or nodes whose messages must not pass through other members of the set, must be able to “see” one another along shortest paths that avoid the other members. The concept has since been studied intensively, including on graphs of diameter two [3]. Klavžar, Kuziak, Valenzuela Tripodoro and Yero [6] introduced the corresponding colouring problem: partition the vertex set into as few mutual-visibility sets as possible.
Definition 1.1 ([5, 6]). Let be a graph and . Two vertices are called -visible when some shortest -path avoids except at its two ends, and is called a mutual-visibility set (MV set) if every pair of its vertices is -visible. A mutual-visibility colouring of is a partition of into MV sets, and the mutual-visibility chromatic number is the least number of sets in such a partition.
For graphs of diameter two, every independent set is an MV set (two non-adjacent vertices of an independent set have a common neighbour, which cannot lie in ), and so every proper colouring is a mutual-visibility colouring:
Proposition 1.2 ([6, Proposition 2.2]). If has diameter two, then . Equality holds for every complete bipartite graph with .
The authors of [6] posed the following problem (quoted from the published version).
Problem 1.3 ([6, Problem 8.3]). Characterize the graphs of diameter two for which holds. In particular, are there any additional such graphs besides the complete bipartite graphs? In addition, are there some other relationships between and for other graph classes?
Brešar, Peterin, Samadi and Yero [2] obtained partial results towards Problem 1.3. Using the 1-defective chromatic number (the least such that can be partitioned into sets each inducing a subgraph of maximum degree at most 1; see [4]), they proved:
2020 Mathematics Subject Classification. 05C15, 05C12.
Key words and phrases. mutual-visibility set, mutual-visibility colouring, chromatic number, diameter two.
SIDDHESH CHAUBAL
Proposition 1.4 ([2, Proposition 18]). If has diameter two, then .
Since every proper colouring is 1-defective, for every graph , so Proposition 1.4 sharpens Proposition 1.2. Consequently, any diameter-two graph with must also satisfy . On the other hand, the 5-cycle and the Petersen graph, for instance, satisfy [2]. Despite these results, the question of whether there exist diameter-two graphs other than complete bipartite graphs satisfying remained unresolved. We settle this existence question in the affirmative.
Our results. In Section 3 we exhibit a graph of order 11 and diameter two with , and more generally show that the graphs , obtained from by replacing one vertex by pairwise non-adjacent copies, satisfy for every (Theorems 3.4 and 3.8, Corollary 3.9). The proof is structural: four short claims, each a direct consequence of the neighbourhood structure of these graphs, rule out every mutual-visibility colouring with two colours.
The paper is organized as follows. Section 2 reformulates mutual visibility for graphs of diameter two, Section 3 contains the constructions and the proofs, and Section 4 lists some open questions.
(V) every two non-adjacent vertices of the same colour have a common neighbour of the other colour.
We shall use (V) in the following form: if are non-adjacent and all their common neighbours have colour , then and do not both have colour .
3. THE GRAPH AND THE FAMILY
3.1. The graph
Definition 3.1. is the graph with vertex set , whose vertices have the following roles:
• the base vertices 0,1,2,3
• the caps 4,5,6,7
• the links 8,9
• the hub 10
Its 22 edges are:
• the edges 01, 12, 23, 30, forming the base cycle 01230
• each cap is adjacent to two consecutive base vertices: , , ,
• each link is adjacent to two caps with no common base neighbour: ,
• the hub is adjacent to every cap and every link:
DIAMETER-TWO GRAPHS WITH
3

FIGURE 1. The graph . (a) The roles of the vertices. (b) A proper 3-colouring with classes , , .
The graph is drawn in Figure 1. We denote the hub 10 by and the set of base vertices by . For a cap let be the set of the two base vertices adjacent to (they are consecutive on the base cycle), and let be the link adjacent to :
| 4 | 5 | 6 | 7 | |
|---|---|---|---|---|
| 8 | 9 | 8 | 9 |
Thus the two caps of a link have disjoint sets , so that . For two caps with different links, and have exactly one base vertex in common, and we say that and share this base vertex. In the cyclic order 4,5,6,7 consecutive caps share the base vertices 1,2,3,0, respectively. Table 1 lists all neighbourhoods.
| 0 | 4 | 8 | |||
| 1 | 5 | 9 | |||
| 2 | 6 | 10 | |||
| 3 | 7 |
TABLE 1. The neighbourhoods in . A base vertex is adjacent to its two neighbours on the base cycle and to the two caps with ; a cap is adjacent to , and the hub; a link is adjacent to its two caps and the hub; the hub is adjacent to all caps and both links.
SIDDHESH CHAUBAL
Observation 3.2 (Common neighbourhoods). In , with hub and base , the following hold.
(a) Two opposite base vertices (e.g. 0 and 2) are non-adjacent, and their common neighbours are exactly the other two base vertices (1 and 3).
(b) Let be a link, and let be the other link or a cap not adjacent to (e.g. and or ). Then , and is the only common neighbour of and .
(c) Let be a link and , and let be the unique cap with and (e.g. , , ). Then , and is the only common neighbour of and .
(d) Let be caps sharing exactly one base vertex (e.g. , , ). Then , and the common neighbours of and are exactly and .
(e) In the situation of (d), let be the base vertex with (in the example, ). Then , and is the only common neighbour of and .
Each item of Observation 3.2 can be checked directly from Table 1.
Lemma 3.3. has diameter two and .
Proof. It is easy to verify from Table 1 that every two non-adjacent vertices have a common neighbour; as is not complete, its diameter is two.
The sets , and are independent (Table 1), so ; and is a triangle, so .
Theorem 3.4. . In particular, is a diameter-two graph which is not complete bipartite and satisfies .
Proof. By Lemma 3.3 and Proposition 1.2, . Suppose, for a contradiction, that . Fix a colouring with property (V). Exchanging the colours if necessary, we may assume that the hub is red. We prove four claims about how must colour the links, the caps and the base vertices (illustrated in Figure 2), and then reach a contradiction in two cases. Every contradiction will be with the following fact:
(*) the base vertices do not all have the same colour.
Indeed, the only common neighbours of two opposite base vertices are the other two base vertices (Observation 3.2(a)), so if all four had the same colour, (V) would fail for an opposite pair. Each step below applies (V) in the same way: for two non-adjacent vertices we observe that and all common neighbours of and have the same colour , and conclude that does not have colour .
Claim 1. Both links are blue.
Suppose a link is red, and let be the other link.
(i) Let be or one of the two caps of (these are not adjacent to ). The only common neighbour of and is (Observation 3.2(b)); as and are red, is blue.
(ii) Let . The only common neighbour of and is a cap of (Observation 3.2(c)); as and that cap are blue by (i), is red.
So all base vertices are red, contradicting .
Claim 2. If a cap is blue, then both base vertices in are red.
Let . The only common neighbour of and is (Observation 3.2(c)); as (blue by Claim 1) and are blue, is red.
Claim 3. If two red caps share a base vertex , then is blue.
The only common neighbours of and are and (Observation 3.2(d)); as and are red, is blue.
DIAMETER-TWO GRAPHS WITH
5

FIGURE 2. The four claims in the proof of Theorem 3.4, each for one representative case (the hub 10 is red); each panel title states what is given and what is deduced. Grey vertices are not involved. Each shaded path marks a pair of non-adjacent vertices together with a common neighbour , shaded in the colour of .
Claim 4. If a cap is blue and a cap shares a base vertex with , then is blue.
Write with the shared base vertex; by Claim 2, and are red. The only common neighbour of and is (Observation 3.2(e), with the roles of and exchanged); as and are red, is blue.
Using the four claims, we now distinguish two cases.
Case 1: some cap is blue. Since consecutive caps in the cyclic order 4, 5, 6, 7 share a base vertex, repeated application of Claim 4 shows that all four caps are blue. By Claim 2 for the caps 4 and 6, all base vertices in are red, contradicting ().
Case 2: all caps are red. By Claim 3 for the pairs , , , , which share the base vertices 1, 2, 3, 0, respectively, all base vertices are blue, contradicting ().
SIDDHESH CHAUBAL
Hence .
□
3.2. The family .
Definition 3.5. For , let be obtained from by replacing the cap 4 by pairwise non-adjacent vertices , each adjacent to exactly . Thus is with the cap 4 renamed (see Figure 3 for ).
(a) cap 4 replaced by 3 independent copies (purple)

(b) a proper 3-colouring

FIGURE 3. The graph . (a) The cap 4 is replaced by three pairwise non-adjacent copies with the same neighbourhood . (b) A proper 3-colouring with classes , , .
All copies are again called caps. The caps of fall into four cap classes
and we put and (). Let map every copy to 4 and fix all other vertices. By construction,
where are vertices of , the neighbourhood is taken in , and denotes the preimage of a set ; two distinct copies are non-adjacent. Consequently, for any two vertices of , the set of common neighbours of and is the preimage under of the set of common neighbours of and in : it is obtained from the latter set by replacing 4, if present, with the whole class . Since the two vertices in each item below have distinct images under , this gives the following analogue of Observation 3.2 for .
Observation 3.6 (Common neighbourhoods in ). In , with hub and base , the following hold.
Two opposite base vertices are non-adjacent, and their common neighbours are exactly the other two base vertices.
DIAMETER-TWO GRAPHS WITH
7
(b') Let be a link, and let be the other link or a cap not adjacent to . Then , and is the only common neighbour of and .
Let be a link and , and let be the unique cap class with and . Then , and the common neighbours of and are exactly the caps in .
Let be distinct cap classes sharing exactly one base vertex , and , . Then , and the common neighbours of and are exactly and .
In the situation of , let be the base vertex with . Then , and is the only common neighbour of and .
Lemma 3.7. For every , has diameter two and .
Proof. Two non-adjacent vertices with distinct images under are at distance two by Lemma 3.3 and (1), and two copies have the common neighbour ; as is not complete, its diameter is two. Giving every vertex of the colour of in the 3-colouring of Lemma 3.3 yields a proper 3-colouring (Figure 3(b)), since adjacent vertices have distinct, adjacent images by (1). As is a triangle, .
Theorem 3.8. For every , the graph has vertices, diameter two, and .
Proof. We follow the proof of Theorem 3.4, with caps replaced by cap classes; Figure 2 applies with each cap read as its class. By Lemma 3.7 and Proposition 1.2, . Suppose that , and fix a colouring with property (V) in which is red (exchanging the colours if necessary). As before, by Observation 3.6(a'),
(★) the base vertices do not all have the same colour.
Call a cap class blue if all its caps are blue.
Claim 1'. Both links are blue.
Suppose a link is red, and let be the other link.
(i) Let be or a cap in one of the two classes of . The only common neighbour of and is (Observation 3.6(b'); as and are red, is blue.
(ii) Let . The only common neighbours of and are the caps of a class of (Observation 3.6(c)); as and these caps are blue by (i), is red.
So all base vertices are red, contradicting .
Claim 2'. If a cap class K is blue, then both base vertices in are red.
Let . The only common neighbours of and are the caps in (Observation 3.6(c)); as (blue by Claim 1') and these caps are blue, is red.
Claim 3'. If distinct cap classes share a base vertex , and , are red, then is blue.
The only common neighbours of and are and (Observation 3.6(d’)); as , and are red, is blue.
Claim 4'. If a cap class is blue and a cap class shares a base vertex with , then is blue.
Write with the shared base vertex; by Claim and are red. For every the only common neighbour of and is (Observation 3.6(e'), with the roles of and exchanged); as and are red, is blue.
Using the four claims, we now distinguish two cases.
SIDDHESH CHAUBAL
Case 1: some cap class is blue. Since consecutive classes in the cyclic order share a base vertex, repeated application of Claim 4' shows that all four classes are blue, and by Claim 2' for and all base vertices are red, contradicting ().
Case 2: every cap class contains a red cap. Choose red caps . By Claim 3' for the consecutive pairs , , , , which share the base vertices 1, 2, 3, 0, respectively, all base vertices are blue, contradicting ().
Hence .
Corollary 3.9. The graphs , form an infinite family of diameter-two graphs which are not bipartite and satisfy .
Proof. This follows from Theorem 3.8, since each contains the triangle .
4. CONCLUDING REMARKS
Theorems 3.4 and 3.8 answer the second question of Problem 1.3: the complete bipartite graphs are not the only diameter-two graphs with , and there are infinitely many others. A full characterization appears difficult; already deciding whether is NP-complete, even for graphs of diameter four [1]. We mention some natural questions.
(1) Is there, for every , a diameter-two graph with ?
(2) Is there a structural description of the diameter-two graphs with ?
USE OF GENERATIVE AI
During this work the author used Claude Opus 5.5 (Anthropic), which designed and ran the computer searches that found , proposed the family , produced the proofs of Theorems 3.4 and 3.8, wrote the code that produced the figures, and helped prepare the manuscript. The author directed the investigation through questions that shaped its course, verified every step of each proof by hand, and takes full responsibility for the content of the publication.
REFERENCES
[1] S. Babu, G. Di Stefano, A. Lakshmanan S., Mutual-visibility coloring of graphs, preprint, arXiv:2512.12251 (2025).
[2] B. Brešar, I. Peterin, B. Samadi, I. G. Yero, Independent mutual-visibility coloring and related concepts, Aequationes Math. 100 (2026), Paper No. 48.
[3] S. Cicerone, G. Di Stefano, S. Klavžar, I. G. Yero, Mutual-visibility problems on graphs of diameter two, European J. Combin. 120 (2024), Paper No. 103995.
[4] L. J. Cowen, R. H. Cowen, D. R. Woodall, Defective colorings of graphs in surfaces: partitions into subgraphs of bounded valency, J. Graph Theory 10 (1986), 187–195.
[5] G. Di Stefano, Mutual visibility in graphs, Appl. Math. Comput. 419 (2022), Paper No. 126850.
[6] S. Klavžar, D. Kuziak, J. C. Valenzuela Tripodoro, I. G. Yero, Coloring the vertices of a graph with mutual-visibility property, Open Math. 23 (2025), Paper No. 20250193.
AFINIT, INDIA
Email address: spchaubal@gmail.com