October 02, 2025
The boxicity of a graph \(G\) is the minimum dimension \(d\) that admits a representation of \(G\) as the intersection graph of a family of axis-parallel boxes in \(\mathbb{R}^d\). Computing boxicity is an NP-hard problem, and there are few known graph classes for which it can be computed in polynomial time. One such class is the class of block graphs. A block graph is a graph in which every maximal \(2\)-connected component is a clique. Since block graphs are known to have boxicity at most two, computing their boxicity amounts to the linear-time interval graph recognition problem. On the other hand, complements of block graphs have unbounded boxicity, yet we show that there is also a polynomial algorithm that computes the boxicity of complements of block graphs. An adaptation of our approach yields a polynomial algorithm for computing the threshold dimension of the complements of block graphs, which for general graphs is an NP-hard problem. Our method suggests a general technique that may show the tractability of similar problems on block-restricted graph classes.
Keywords. | boxicity, threshold dimension, block graphs, graph cover, co-interval graphs. |
MSC 2020. | 05C62 (primary); 05C10, 05C85 (secondary) |
The intersection graph of a finite family \(\mathcal{F}\) is the graph with vertex set \(\{v_A : A \in \mathcal{F}\}\) and edge set \(\{v_A v_B : A, B \in \mathcal{F}, \;A \cap B \neq \emptyset\}\). The boxicity of a graph \(G\), denoted by \(\mathop{\mathrm{box}}(G)\), is defined to be the minimum dimension \(d\) such that \(G\) can be represented as the intersection graph of a family of \(d\)-dimensional axis-parallel boxes in \(\mathbb{R}^d\). Boxicity was introduced in 1969 by Roberts Rob?. Its study was initially motivated by applications in ecology, specifically in modelling niche overlap and competition between species 1978_Cohen?, 1976_Roberts?. Further applications appear in operations research, where boxicity has been used in fleet maintenance and task assignment problems 1983_Cozzens?, 1981_Opsut?.
Example 1. Figure 1 shows a family \(\mathcal{F}\) of axis-parallel boxes in \(\mathbb{R}^2\) with its intersection graph \(G\). Since the boxes are subsets of \(\mathbb{R}^2\), \(\mathop{\mathrm{box}}(G) \leq 2\). Moreover, \(G\) contains an induced cycle on four vertices, which cannot be represented as the intersection graph of intervals in \(\mathbb{R}\). So, \(\mathop{\mathrm{box}}(G) = 2\).
While graphs of boxicity one (i.e. interval graphs) can be recognized in linear time 1975_Kellogg?, even the decision problem of whether a graph has boxicity at most \(2\) is NP-hard 1994_Kratochvil_NP?. Consequently, significant effort has been directed towards relating boxicity to other graph parameters (e.g.ABC?, CS?, Esp?, EJ?) or computing it for specific graph classes (e.g.2023_Caoduro?, 2011_Chandran?, 1984_Scheinerman?, 1986_Thomassen?).
In 1983, Cozzens and Roberts 1983_Cozzens? initiated the study of boxicity from the perspective of covering the graph’s complement using co-interval graphs. Using this complement co-interval cover perspective, Cozzens and Halsey 1991_COZZENS_Coboxicity? proved that the decision problem of whether \(\mathop{\mathrm{box}}(G) \leq 2\) is polynomial when \(G\) is a co-comparability graph. Motivated by the potential of this covering perspective, we investigate directly the boxicity of graph complements. We refer to the boxicity of the complement of a graph \(G\) as its co-boxicity, denoted by \(\mathop{\mathrm{co-box}}(G)\). As \(\mathop{\mathrm{co-box}}(G) = \mathop{\mathrm{box}}(\overline{G})\), the general co-boxicity decision problem for \(k = 2\) is also NP-hard.
There are few known examples of graph classes for which the co-boxicity can be computed efficiently. An elementary example is the class of paths, where the path on \(n\) vertices has co-boxicity \(\left\lceil \frac{n-1}{3} \right\rceil\) 1983_Cozzens?. Yannakakis 1982_Yannakakis? proved that the decision problem is NP-hard for \(k=3\) for bipartite graphs. Following this result, a natural general problem to consider is to determine how far this efficiency on paths extends within the class of bipartite graphs. A good next candidate is the class of trees.
Can the co-boxicity of trees be computed in polynomial time?
Beyond bipartite graphs, additional examples of graphs with efficiently computable co-boxicity include those with co-boxicity at most \(2\), such as co-block graphs and co-outerplanar graphs 1984_Scheinerman?. For such a graph, computing co-boxicity is equivalent to the linear-time decision problem of whether its complement is an interval graph 1975_Kellogg?. Adiga et al. 2010_Adiga? showed that the co-boxicity of graphs with bounded stable set number can be computed efficiently. More recently, Caoduro and Sebő 2023_Caoduro_GD? established that the co-boxicity of the line graph of the complete graph on \(n\) vertices is \(n-2\), and that for any fixed \(k\) there is a polynomial-time algorithm to decide whether the co-boxicity of a line graph is at most \(k\). They left as an open question whether this dependency on \(k\) can be removed 2023_Caoduro_GD?*Problem 2.
Can the co-boxicity of line graphs be computed in polynomial time?
In this work, we expand the list of graph classes for which the co-boxicity can be computed in polynomial time to include block graphs. A block graph is a graph in which every maximal \(2\)-connected subgraph, called a block, is a complete graph. Since trees are block graphs, we answer Question [question:forest-coboxicity] affirmatively. Moreover, since line graphs of trees are also block graphs, our result provides partial progress towards resolving Question [question:line-graph-coboxicity]. We now state our main result.
Theorem 1. There exists a polynomial-time algorithm to compute the co-boxicity of block graphs.
Co-boxicity is closely related to another graph parameter called the threshold co-dimension. A threshold graph is either an isolated vertex, or it is obtained from another threshold graph by including an isolated or universal vertex (i.e. a vertex adjacent to all other vertices). Equivalently, a threshold graph is a \(\{P_4, C_4, 2K_2\}\)-free graph, where \(P_4\) is the path on four vertices, \(C_4\) is the cycle on four vertices, and \(2K_2\) is the disjoint union of two edges. A collection \(\{T_1, T_2, \ldots, T_k\}\) of threshold subgraphs of \(G\) is called a threshold cover of \(G\) if \(E(G) = \bigcup_{i=1}^k E(T_i)\). In this terminology, the threshold co-dimension of \(G\), denoted by \(\mathop{\mathrm{co-dim_{TH}}}(G)\), is defined to be the minimum size of a threshold cover of \(G\). Since \(K_2\) is a threshold graph, \(\mathop{\mathrm{co-dim_{TH}}}(G)\) is well-defined for all \(G\). The value \(\mathop{\mathrm{co-dim_{TH}}}(G)\) is also known as the threshold dimension of \(\overline{G}\). See 1975_chvatalAndHammer_thresholdDimIsNPHard?, 1995_Mahadev_book_thresholdGraphs? for background on the threshold dimension and its applications.
Chvátal and Hammer 1975_chvatalAndHammer_thresholdDimIsNPHard? proved that calculating \(\mathop{\mathrm{co-dim_{TH}}}(G)\) for a general graph is an NP-hard problem. Adapting the proof of Theorem 1, we show that when \(G\) is a block graph, \(\mathop{\mathrm{co-dim_{TH}}}(G)\) can be computed in polynomial time, and moreover that \(1\leq \tfrac{\mathop{\mathrm{co-dim_{TH}}}(G)}{\mathop{\mathrm{co-box}}(G)} \leq 2\) (see Proposition [proposition:threshold-co-dimension-and-co-boxicity-bounds]).
Theorem 2. There exists a polynomial-time algorithm to compute the threshold co-dimension of block graphs.
Our method for establishing Theorems 1 and 2 builds on techniques first introduced by Cozzens and Roberts 1983_Cozzens? and further developed by Caoduro and Sebő 2023_Caoduro_GD? to study co-boxicity using co-interval covers. In Section 2, we review these techniques along with structural properties of graph blocks that are relevant to our arguments. Our method first characterizes the class of maximal co-interval subgraphs of block graphs and then uses the tree-like structure of block graphs to design an algorithm that constructs a minimum co-interval cover. In Section 3, we characterize the maximal co-interval subgraphs of block graphs as big ants, which are generalizations of graphs known in the literature as ants 1983_Cozzens?. In Section 4, we present Algorithm 6, which yields a polynomial-time computation of the co-boxicity of block graphs, and we prove Theorem 1. The proof of Theorem 2 follows the same general approach, with only a few adjustments. These adjustments are provided in Section 5, where we also describe how Algorithm 6 can be adapted to compute the threshold co-dimension of block graphs in polynomial time. The method we develop to prove Theorems 1 and 2 not only establishes tractability for block graphs but also provides a framework that likely extends to other block-restricted classes, such as cactus graphs (i.e. graphs where each block is a cycle). We conclude in Section 6 with a discussion of these possible extensions and other open problems motivated by our approach.
All graphs in this paper are simple. We use standard graph-theoretic notation throughout (see 2003_Schrijver? for background and terminology) and briefly recall here the notation used most frequently.
Let \(G = (V, E)\) be a graph. For a vertex \(v \in V\), the sets \(\delta_G(v) \subseteq E\) and \(N_G(v) \subseteq V\) are defined to be the edges incident to \(v\) and vertices adjacent to \(v\), respectively. The closed neighbourhood of \(v\) is defined as \(N_G[v] = N_G(v) \cup \{v\}\). The degree of a vertex \(v\) is denoted by \(d_G(v)\), and satisfies \(d_G(v) = |\delta_G(v)| = |N_G(v)|\). A subgraph of \(G\) is a graph \((U,F)\) satisfying \(U \subseteq V\) and \(F \subseteq E\). A subgraph \((U,F)\) is induced in \(G\) if for all \(u,v \in U\), \(uv \in F\) if and only if \(uv \in E\). The induced subgraph of \(G\) on a vertex set \(U \subseteq V\) is denoted by \(G[U]\). If \(U \subseteq V\) is a set of vertices to be removed from \(G\), then the induced subgraph \(G[V \setminus U]\) is denoted by \(G \setminus U\). Given two graphs \(G_1 = (V_1, E_1)\) and \(G_2 = (V_2, E_2)\), if \(V_1 \cap V_2 = \emptyset\), then we refer to the graph \((V_1 \cup V_2, E_1 \cup E_2)\) as the disjoint union of \(G_1\) and \(G_2\). Note that any graph is the disjoint union of its connected components.
A graph \(H = (U,F)\) is a co-interval graph if there exists a function \(I\) mapping \(U\) to closed intervals in the real line such that \(uv \in F\) if and only if \(I(u) \cap I(v) = \emptyset\). The function \(I\) is called a co-interval representation of \(H\). Another characterization of a co-interval graph can be expressed in terms of orderings of its vertices. For a positive integer \(n\), let \([n] = \{1,2,\ldots,n\}\). Given an ordering \(\sigma\) of the elements of a set of size \(n\) and an index \(i \in [n]\), we denote by \(\sigma(i)\) the \(i\)-th element of \(\sigma\).
Theorem 3 (Olariu 1991_Olariu?*Theorem 4). A graph \(H = (U,F)\) is a co-interval graph if and only if there exists an ordering \(\sigma\) of \(U\) such that the following property holds: \[\label{prop:interval95ordering} \text{For any indices i,j,k \in [|U|], if i < j < k and \sigma(j)\sigma(k)\in F, then \sigma(i)\sigma(k) \in F.}\qquad{(1)}\]
Example 2. Figure 2 shows a co-interval graph \(H\) with a co-interval representation \(I\) such that Property ?? holds for the vertex ordering obtained from the right endpoints of the intervals.
Following the approach in 2023_Caoduro_GD?, vertex orderings can be used to study the co-interval subgraphs of a graph. To this end, for any graph \(G = (V,E)\) and any ordering \(\sigma\) of \(V\), we construct a subgraph of \(G\) satisfying Property (?? ) with respect to the restriction of \(\sigma\) to its vertex set.
Definition 1. Let \(G=(V, E)\) be a graph and \(\sigma\) be an ordering of \(V\). The \(\sigma\)-subgraph of \(G\) is the graph \(G^\sigma =(V^\sigma,E^\sigma)\) where \(V^\sigma\) and \(E^\sigma\) are defined as follows. Recursively, for each \(i \in [|V|]\), let \[V^\sigma_i = \left\{ \begin{array}{cl} N_G(\sigma(i)) & \text{if}~i = 1\\ V^\sigma_{i-1} \cap N_G(\sigma(i)) & \text{if}~ 2\leq i \leq |V| \end{array}\right.\] and let \(E^\sigma_i = \{\sigma(i)v \in E : v \in V^\sigma_i\}.\) Then \(V^\sigma = \bigcup_{i \in [n], V^\sigma_i \neq \emptyset} \bigl( \{\sigma(i)\} \cup V^\sigma_i \bigr)\) and \(E^\sigma = \bigcup_{i\in[n]} E^\sigma_i\).
Example 3. Figure 3 shows a graph \(G = (V, E)\) with an ordering \(\sigma = (v_2, v_4, v_6, v_5, v_3, v_1)\) of \(V\), the subgraph \(G^\sigma\), and for \(i \in [3]\), the graphs \((\{\sigma(i)\} \cup V^\sigma_i, E^\sigma_i)\), where the vertices in \(V^\sigma_i\) are marked in blue. The vertex \(v_1\) in \(V^\sigma_3\) is not in \(N_G(\sigma(4)) = N_G(v_5)\), so for \(i\in \{4,5,6\}\), \(V^\sigma_i=\emptyset\) and \(E^\sigma_i = \emptyset\).
We refer to a co-interval subgraph \(H\) of \(G\) as maximal if there does not exist a co-interval subgraph \(H'\) of \(G\) satisfying \(E(H) \subsetneq E(H')\). Since maximality refers only to the edge set, and the property of being a co-interval graph is preserved under the addition or removal of isolated vertices, we assume that a maximal subgraph does not contain isolated vertices. We conclude with the following lemma of Caoduro and Sebő, and provide another proof using our terminology.
Lemma 1 (Caoduro and Sebő 2023_Caoduro_GD?*Corollary 1). Let \(G=(V,E)\) be a graph. Then, for any ordering \(\sigma\) of \(V\), \(G^\sigma\) is a co-interval subgraph of \(G\). Also, any maximal co-interval subgraph \(H =(U,F)\) of \(G\) is of the form \(G^{\sigma_H}\) for some ordering \(\sigma_H\) of \(U\).
Proof. Let \(\sigma\) be an ordering of \(V\) and let \(G^\sigma\) be the \(\sigma\)-subgraph of \(G\). For any indices \(i,j, k \in [|V|]\) satisfying \(i < j < k\), the recursive construction in Definition 1 ensures that \(V^\sigma_i \supseteq V^\sigma_j \supseteq V^\sigma_k\). Moreover, by the definition of \(E^\sigma\), if \(\sigma(j)\sigma(k) \in E^\sigma\) then either \(\sigma(k) \in V^\sigma_j\) or \(\sigma(j) \in V^\sigma_k\). Since \(\sigma(j) \notin V^\sigma_j\) and \(V^\sigma_k \subseteq V^\sigma_j\), it follows that \(\sigma(k) \in V^\sigma_j \subseteq V^\sigma_i\). Thus, \(\sigma(i)\sigma(k) \in E^\sigma\). This shows that \(G^\sigma\) satisfies Property ?? with respect to the restriction of \(\sigma\) to \(V^\sigma\). Hence, \(G^\sigma\) is a co-interval graph by Theorem 3.
Now, let \(H = (U,F)\) be a maximal co-interval subgraph of \(G\). Then by Theorem 3, there is an ordering \(\sigma_H\) of \(U\) such that \(H\) satisfies Property ?? with respect to \(\sigma_H\). Append to \(\sigma_H\) the vertices of \(V\setminus U\) in any order. We show that \(H=G^{\sigma_H}\). Let \(1 \leq j < k \leq |V|\) such that \(\sigma_H(j)\sigma_H(k) \in F\). Then Property ?? implies that for any \(i \in [j-1]\), \(\sigma_H(i)\sigma_H(k) \in F\). Thus, by the \(j\)-th step of the recursive construction of \(G^{\sigma_H}\), \(\sigma_H(k)\) remains in \(V^{\sigma_H}_j\). Moreover, by the definition of \(E^{\sigma_H}\), \(\sigma_H(j)\sigma_H(k) \in E^{\sigma_H}\). Hence, \(F \subseteq E^{\sigma_H}\). By the first part of the proof, \(G^{\sigma_H}\) is a co-interval subgraph of \(G\). Thus, the maximality of \(H\) implies that \(F = E^{\sigma_H}\), which yields \(H = G^{\sigma_H}\). 0◻ ◻
Let \(G=(V, E)\) be a graph with co-boxicity \(d\). Then, by the definition of co-boxicity, there is a family \(\mathcal{B} = \{B(u): u \in V\}\) of \(d\)-dimensional axis-parallel boxes in \(\mathbb{R}^d\) satisfying \(uv \in E\) if and only if \(B(u)\) and \(B(v)\) are disjoint. For each \(i \in [d]\), the projections of the boxes in \(\mathcal{B}\) onto the \(i\)-axis form a co-interval representation of a co-interval graph \(G_i\). Since two boxes in \(\mathcal{B}\) are disjoint if and only if there is an axis-aligned plane separating them, \(G_i\) is a subgraph of \(G\). Moreover, \(uv \in E\) if and only if there is an \(i \in [d]\) such that \(uv \in E(G_i)\).
A family \(\mathcal{C}= \{G_1, G_2, \ldots, G_k\}\) is a co-interval cover of \(G\) if \(\bigcup_{i\in[k]} E(G_i)=E\) and for each \(i \in [k]\), \(G_i\) is a co-interval subgraph of \(G\). So, if \(\mathcal{C}\) has minimum size, then \(\mathop{\mathrm{co-box}}(G) = |\mathcal{C}|\).
Lemma 2 (Cozzens and Roberts 1983_Cozzens?*Theorem 3). Let \(G\) be a graph. Then \(\mathop{\mathrm{co-box}}(G) \leq k\) if and only if \(G\) has a co-interval cover of size \(k\).
Co-interval graphs are easily seen to be hereditary by their co-interval representations, and they are \(\{2K_2\}\)-free because \(\overline{2K_2}=C_4\) is not an interval graph. So, no graph in a co-interval cover of \(G\) can have edges in more than one connected component. By Lemma 2, it follows that \(\mathop{\mathrm{co-box}}(G)\) equals the sum of the co-boxicities of the connected components of \(G\).
Lemma 3 (Trotter 1979_Trotter?*Lemma 3). Let \(t\) be a positive integer, and let \(G\) be the disjoint union of graphs \(H_1, H_2, \ldots, H_t\). Then, \(\mathop{\mathrm{co-box}}(G) = \sum_{i=1}^t \mathop{\mathrm{co-box}}(H_i)\).
In this section, we examine the blocks of general graphs. A block of a graph \(G\) is a maximal \(2\)-connected component of \(G\). A vertex \(v\) of \(G\) is a cut-vertex if its removal increases the number of connected components of \(G\). Any two blocks of \(G\) share at most one vertex, and the shared vertex must be a cut-vertex. Two distinct blocks are neighbours if they share a common cut-vertex. We classify blocks as follows: a block is an isolated block if it contains no cut-vertex, a leaf block if it contains exactly one cut-vertex, and an internal block otherwise. A block with exactly \(2\) vertices is an edge block. If all leaf blocks in a graph \(G\) are edge blocks, then \(G\) is pointed.
The blocks and cut-vertices of a graph exhibit a tree-like incidence structure, called the block-cut tree 1966_Harary?. The following observation about the blocks of a connected graph mirrors the elementary fact that every tree with more than one vertex has a leaf vertex.
Lemma 4. If \(G\) is a connected graph that is not an isolated block, then it contains a leaf block.
We now introduce a subclass of internal blocks that play an essential role in our method.
Definition 2. An internal block \(Q\) is a near-leaf block if either all internal block neighbours of \(Q\) share exactly one cut-vertex called the anchor of \(Q\), or all neighbours of \(Q\) are leaf blocks.
Near-leaf blocks exist whenever internal blocks exist. We prove this using the following graph operation. The core of a graph \(G\), denoted by \(\rho(G)\), is the graph obtained from \(G\) by removing \(V(Q)\) for each isolated block \(Q\), and \(V(Q')\setminus\{u\}\) for each leaf block \(Q'\) with cut-vertex \(u\).
Example 4. Figure 4 shows a graph \(G\) and its core \(\rho(G)\). The shaded blocks \(Q\) and \(Q'\) illustrate the two types of near-leaf blocks, and \(Q\) shares its anchor vertex \(u\) with the internal block \(B\).
Lemma 5. A graph \(G\) contains a near-leaf block if and only if it contains an internal block.
Proof. The forward direction holds since any near-leaf block is an internal block. For the converse, suppose \(G\) contains an internal block. By the definition of \(\rho(G)\), the blocks of \(\rho(G)\) are the internal blocks of \(G\). Let \(H\) be a connected component of \(\rho(G)\). If \(H\) is an isolated block in \(\rho(G)\), then all neighbours of \(H\) in \(G\) must be leaf blocks, and so \(H\) is a near-leaf in \(G\). Otherwise, by Lemma 4, \(H\) contains a leaf block \(Q\) with unique cut-vertex \(u\) in \(\rho(G)\). Then all neighbours of \(Q\) in \(G\) that do not contain \(u\) are leaf blocks. Hence, \(Q\) is a near-leaf block in \(G\) and \(u\) is its anchor. 0◻ ◻
The following lemma provides a sufficient condition for the existence of near-leaf blocks.
Lemma 6. If \(G\) is a connected and pointed graph that is neither an isolated block nor a star, then it contains a near-leaf block.
Proof. Since \(G\) is connected and is not an isolated block, Lemma 4 implies that \(G\) contains a leaf block \(Q\). Suppose for a contradiction that \(Q\) has no internal block neighbours. Then any block neighbour of \(Q\) must be a leaf block. Since \(G\) is connected, its blocks are exactly \(Q\) and its neighbours. Moreover, since \(G\) is pointed, all leaf blocks in \(G\) are edge blocks. So, \(G\) consists entirely of multiple edge blocks all sharing the same cut-vertex. This implies that \(G\) is a star, a contradiction. Therefore, \(Q\) has an internal block neighbour, and so by Lemma 5, \(G\) contains a near-leaf block. 0◻ ◻
Recall from Section 2.2 that the co-boxicity of a graph can be computed by finding a minimum co-interval cover. A key step in our covering approach is to identify the maximal co-interval subgraphs.
Ants are a class of co-interval graphs originally used in the context of co-boxicity in 1983_Cozzens? to construct co-interval covers. Given an edge \(uv\) of a graph \(G\), the \((u,v)\)-ant subgraph of \(G\) is \((N_G[u] \cup N_G[v], \delta_G(u) \cup \delta_G(v))\). The following definition of big ants generalizes ants by replacing the specified edge with a possibly larger clique. Then in Lemma 7, we will show that big ants are also co-interval graphs. As the blocks of a block graph are cliques, big ants can produce smaller co-interval covers of block graphs than ants can.
Definition 3. Let \(G\) be a graph, \(Q\) a clique in \(G\), and \(u,v \in V(Q)\). Then the subgraph \[Q_{u,v}(G) = \left ( V(Q) \cup N_G(u) \cup N_G(v), E(Q) \cup \delta_G(u) \cup \delta_G(v) \right )\] is called the \((Q,u,v)\)-big ant in \(G\). We say that \(Q_{u,v}(G)\) extends \(Q\). If \(G\) is clear from the context, we write \(Q_{u,v}\) instead of \(Q_{u,v}(G)\). Moreover, if \(u=v\), we write \(Q_u\) instead of \(Q_{u,u}\).
Example 5. Figure 5 shows a co-interval representation \(I\) of a big ant \(Q_{u,v}\) in a graph \(G\). Observe that the representation \(I\) follows the same construction used in the proof of Lemma 7.
Lemma 7. If \(Q_{u,v}\) is a big ant in \(G\), then it is a co-interval graph.
Proof. Let \(\mathcal{I} = \{I(t) : t \in V(Q)\}\) be a family of pairwise disjoint closed intervals such that \(I(u)\) is the leftmost interval and, if \(u \neq v\), \(I(v)\) is the rightmost interval in the family. For each vertex \(w \in N_G(u) \setminus V(Q)\) (respectively, \(w' \in N_G(v) \setminus V(Q)\)), add an interval \(I(w)\) (respectively, \(I(w')\)) to \(\mathcal{I}\) intersecting all intervals in \(\mathcal{I}\) except \(I(u)\) (respectively, \(I(v)\)). For \(w,w' \in V(Q_{u,v})\), \(I(w) \cap I(w') = \emptyset\) if and only if \(ww' \in E(Q_{u,v})\). Thus, \(I : V(Q_{u,v}) \xrightarrow{} \mathcal{I}\) is a co-interval representation of \(Q_{u,v}\). 0◻ ◻
Now we establish that every maximal co-interval subgraph of a block graph is a big ant.
Lemma 8. Let \(G\) be a block graph. Then any maximal co-interval subgraph of \(G\) is a big ant \(Q_{u,v}\) in \(G\), where \(Q\) is a block in \(G\).
Proof. Let \(n = |V(G)|\) and \(H\) be a maximal co-interval subgraph of \(G\). If \(G\) is a clique, then \(H = G\) is a big ant. Otherwise, assume that \(G\) is not a clique. By Lemma 1, there exists an ordering \(\sigma\) of \(V(G)\) such that \(H = G^{\sigma}\). Let \(Q\) be a block containing \(\sigma(1)\) and let \(j^* \in [n]\) be the smallest index such that \(\sigma(j^*) \notin V(Q)\). By the definition of a block, the following two properties hold: \[\begin{align} \tag{1} & \text{Any two vertices within a block Q share neighbours only within V(Q).} \\[4pt] \tag{2} & \text{Vertices in different blocks can share at most one neighbour, which must be a cut-vertex.} \end{align}\] By Definition 1, for any \(i \in [n]\), \(V^\sigma_i \subseteq N_G(\sigma(1)) \cap N_G(\sigma(i))\). Moreover, by the definition of \(j^*\) and Property 1 , we have \(E^\sigma_i \subseteq E(Q)\) for any \(i \in [j^*-1] \setminus \{1\}\). If \(V^\sigma_{j*} = \emptyset\), then \(E^\sigma_i = \emptyset\) for any \(i \in \{j^*, \ldots , n\}\). Hence, \(H = G^\sigma\) is a subgraph of \[\label{equ:big-ants-maximal-Vj42-empty} (V(Q) \cup N_G(\sigma(1)), \;E(Q) \cup \delta_G(\sigma(1))).\tag{3}\] Moreover, as \(G\) is a block graph, \(Q\) is a clique. Thus, the graph in 3 is \(Q_{\sigma(1)}\). Otherwise, Property 2 implies that \(V^\sigma_{j^*} = \{t\}\), where \(t\) is the cut-vertex joining \(Q\) and the block containing \(\sigma(j^*)\). Then, for any \(i\in \{j^* +1, \ldots, n\}\), we have \(V_i^\sigma \subseteq V_{j^*}^\sigma = \{t\}\) and \(E^\sigma_i \subseteq \delta_G(t)\). Thus, after including \(E^\sigma_{j^* - 1}\), only the edges in \(\delta_G(t)\) can still be added to \(E^\sigma\). Hence, \(H\) is a subgraph of \[\label{equ:big-ants-maximal-Vj42-non-empty} (V(Q) \cup N_G(\sigma(1)) \cup N_G(t), \;E(Q) \cup \delta_G(\sigma(1)) \cup \delta_G(t)).\tag{4}\] As \(G\) is a block graph, the graph in 4 is \(Q_{\sigma(1),t}\). By Lemma 7, big ants are co-interval graphs. Thus, the maximality of \(H\) implies that \(H = Q_{\sigma(1)}\) if \(V^\sigma_{j*} = \emptyset\), and \(H = Q_{\sigma(1),t}\), otherwise. 0◻ ◻
In this section, we prove Theorem 1. Given a block graph \(G\), Algorithm 6 produces a minimum cover \(\mathcal{C}\) of \(G\) using big ants in polynomial time. By Lemma 7, big ants are co-interval graphs, so \(\mathcal{C}\) is also a minimum co-interval cover of \(G\). Thus, by Lemma 2, we have \(|\mathcal{C}| = \mathop{\mathrm{co-box}}(G)\).
Algorithm 6 processes a connected component of the graph in each iteration. If the component is a clique or star, then it is a big ant. Otherwise, the algorithm leverages the tree-like block structure of graphs to efficiently identify a leaf block with at least \(3\) vertices or a near-leaf block. Then, since the blocks in block graphs are cliques, this block can be covered using a big ant that extends it.
Example 6. Figure 7 illustrates Cases [it:case2] and [it:case3] of Algorithm 6. For each case, the big ant included in the cover extends the block \(Q\), and the removed vertices are highlighted with blue disks. The two instances of removed vertices in Case [it:case3](b) are separated by a vertical dashed grey line.
We structure the proof of Theorem 1 in two parts. Section 4.1 shows that Algorithm 6 terminates in polynomial time and Section 4.2 proves that it returns a minimum co-interval cover.
We establish that Algorithm 6 terminates in a number of steps that is polynomial in the size of the input. First, we show that the algorithm terminates. At the beginning of each iteration, a connected component \(H\) of the residual graph \(\Gamma\) is selected so that \(E(H) \neq \emptyset\). Then the algorithm proceeds differently based on the structure of \(H\). If \(H\) is a clique or a star, then Case [it:case1] applies and \(V(H)\) is removed from \(\Gamma\). If \(H\) is not a clique, then since \(H\) is a block graph, it is not an isolated block, and so by Lemma 4, it contains a leaf block. If \(H\) contains a leaf block \(Q\) satisfying \(|V(Q)| \geq 3\), then Case [it:case2] applies and \(V(Q)\) is removed from \(\Gamma\). If Cases [it:case1] and [it:case2] do not apply, then \(H\) is pointed in Case [it:case3]. By Lemma 6, \(H\) contains a near-leaf block \(Q\). Then, depending on the number of cut-vertices in \(Q\), a subset of \(V(Q_{u,w})\) is removed from \(\Gamma\). In each case of the while-loop, at least one vertex of \(H\) is removed. Since \(H\) has no isolated vertices, at least one edge is removed from \(\Gamma\).
Now we show that Algorithm 6 is polynomial. At each iteration, the algorithm identifies a connected component \(H\) with at least one edge, checks its structural type, and then selects an appropriate block to process. These operations rely on computing the blocks and cut-vertices of the graph, which can be done in polynomial time using standard techniques 1971_Paton?. Once the block structure is known, detecting whether \(H\) contains a near-leaf block and identifying one only requires local inspection of the block-cut tree. Moreover, constructing the big ant to add to \(\mathcal{C}\) and updating \(\Gamma\) involve operations on blocks, which can also be implemented efficiently. Therefore, since Algorithm 6 terminates in a polynomial number of iterations, each of which can be performed in polynomial time, the total running time is polynomial in the size of the input graph.
Let \(G\) be a block graph, and let \(\mathcal{C}\) be the family of big ants returned by Algorithm 6 applied to \(G\). Consider one iteration of the while-loop of Algorithm 6, and let \(H\) be a connected component of the residual graph \(\Gamma\). Moreover, let \(R\) be the vertex set removed from \(\Gamma\) at the end of the iteration. The definition of \(R\) depends on which case we are considering: \(R\) equals \(V(H)\), \(V(Q)\), and \(V(Q_u)\) in Cases [it:case1], [it:case2], and [it:case3](a), respectively, and in Case [it:case3](b) we have \[R = \begin{cases} V(Q_{u,w})\setminus \{v\} &\text{Q contains exactly 3 cut-vertices;} \\ S^u \cup S^w \cup \{u,w\} &\text{otherwise.} \end{cases}\] For each iteration of the while-loop of Algorithm 6, the following lemmas hold.
Lemma 9. For each \(r \in R\), there exists a big ant in \(\mathcal{C}\) that covers \(\delta_H(r)\).
Lemma 10. It holds that \(\mathop{\mathrm{co-box}}(H \setminus R) \leq \mathop{\mathrm{co-box}}(H) - 1\).
As big ants are co-interval graphs by Lemma 7, Lemma 9 implies that \(\mathcal{C}\) is a co-interval cover of \(G\). Moreover, by Lemma 3, we have that \(\mathop{\mathrm{co-box}}(\Gamma) = \mathop{\mathrm{co-box}}(\Gamma \setminus V(H)) + \mathop{\mathrm{co-box}}(H)\). Thus, Lemma 10 implies that \(\mathop{\mathrm{co-box}}(\Gamma)\) decreases by at least one by the end of each iteration of the while-loop. Since the size of \(\mathcal{C}\) increases by one after each iteration, we have \(|\mathcal{C}| \leq \mathop{\mathrm{co-box}}(G)\). Additionally, as \(\mathcal{C}\) is a co-interval cover of \(G\), we have \(|\mathcal{C}| \geq \mathop{\mathrm{co-box}}(G)\). Therefore, we conclude that \(|\mathcal{C}| = \mathop{\mathrm{co-box}}(G)\), and so Algorithm 6 returns a minimum co-interval cover of \(G\).
We now turn to the proofs of Lemmas 9 and 10.
Proof. The statement holds immediately for Case [it:case1], since \(H \in \mathcal{C}\). For Cases [it:case2] and [it:case3], let \(Q_{s,t}\) be the big ant added to \(\mathcal{C}\) in the while-loop iteration. Observe that each \(r \in R\) is either contained in \(V(Q)\), or it is a leaf vertex with its unique neighbour in \(V(Q)\). If \(r \in V(Q)\), then \(r\) is either contained exclusively in the block \(Q\) or it is a cut-vertex in \(\{s,t\}\). Otherwise, the unique neighbour of \(r\) must be in \(\{s,t\}\). Either way, \(\delta_H(r) \subseteq E(Q_{s,t})\), as desired. 0◻ ◻
Proof. We prove the inequality for each case in the order specified by the while-loop.
Case 1: \(H\) is a clique or a star. By Lemma 7, \(H\) is a co-interval graph, and since \(H\) contains an edge, \(\mathop{\mathrm{co-box}}(H) = 1\). Thus, \(\mathop{\mathrm{co-box}}(H \setminus R) = 0 \leq \mathop{\mathrm{co-box}}(H) - 1\).
Case 2: \(H\) contains a leaf block \(Q\) with size at least \(3\). Let \(v\) be the cut-vertex in \(Q\), and let \(u\) and \(\ell\) be two distinct vertices in \(V(Q) \setminus \{v\}\). Since the disjoint union of \(H \setminus R\) and \((\{u,\ell\}, \{u\ell\})\) is an induced subgraph of \(H\), by Lemma 3, we have \[\label{expression:lemma9:Case2AndCase3a} \mathop{\mathrm{co-box}}(H) \geq \mathop{\mathrm{co-box}}(H \setminus R) + \mathop{\mathrm{co-box}}((\{u,\ell\}, \{u\ell\})) = \mathop{\mathrm{co-box}}(H \setminus R) + 1.\tag{5}\]
Case 3: \(H\) is neither a clique nor a star and contains no leaf blocks of size at least \(3\). The case assumption implies that \(H\) is pointed. Thus, \(H\) contains a near-leaf block \(Q\) by Lemma 6. Let \(v\) be the anchor of \(Q\), if it exists, otherwise let \(v\) be any cut-vertex of \(Q\).
Case 3(a): \(Q\) contains exactly \(2\) cut-vertices. Let \(u\) be a cut-vertex in \(V(Q) \setminus \{v\}\) and let \(\ell \in N_{H}(u) \setminus V(Q)\). Similarly to the analysis in Case [it:case2], the disjoint union of \(H \setminus R\) and \((\{u,\ell\}, \{u\ell\})\) is an induced subgraph of \(H\). Lemma 3 implies 5 in this case as well.
Case 3(b): \(Q\) contains at least \(3\) cut-vertices. Let \(u\) and \(w\) be distinct cut-vertices in \(V(Q) \setminus \{v\}\). Before showing \(\mathop{\mathrm{co-box}}(H \setminus R) \leq \mathop{\mathrm{co-box}}(H) - 1\), we prove a property regarding the maximal co-interval subgraph of \(H\) covering the leaf block neighbours of \(Q\). \[\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/erfdipaq.png}\tag{6}\end{figure} \tag{7}\] In order to establish 7 , let \(K\) be a maximal co-interval subgraph of \(H\) containing \(E(L)\). Recall that each leaf block in \(H\) is an edge block and that \(Q\) is a near-leaf block. Thus, every block containing \(x\), except for \(Q\), is an edge block because \(x\) is distinct from the anchor \(v\) of \(Q\). Then, Lemma 8 implies that \(K\) is a big ant that extends either the block \(Q\) or an edge block \(L'\) containing \(x\). The containment \(E(L) \subseteq E(K)\) implies that \(K = L'_{x}\) or \(K = Q_{x,y}\) for some \(y \in V(Q)\). We have \(E(L'_x) \subseteq E(Q_{x,y})\). Moreover, if \(E(L'_x) = E(Q_{x,y})\), then the two big ants coincide. Thus, we have \(K = Q_{x,y}\), and so (7 ) holds.
Let \(\mathcal{C}_H\) be a minimum co-interval cover of \(H\) in which each co-interval subgraph is maximal. Moreover, let \(L^u\) and \(L^w\) be block neighbours of \(Q\) containing \(u\) and \(w\), respectively. As \(Q\) is a near-leaf block and neither \(u\) nor \(w\) is the anchor of \(Q\), \(L^u\) and \(L^w\) must be leaf blocks. By 7 , the co-interval subgraph of \(H\) in \(\mathcal{C}_H\) that covers \(E(L^u)\) (respectively, \(E(L^w)\)) is a big ant \(Q_{u,u'}\) (respectively, \(Q_{w,w'}\)) for some \(u',w' \in V(Q)\). Since \(E(Q_{u,u'}) \cup E(Q_{w,w'})\) equals \(E(Q_{u,w}) \cup E(Q_{u',w'})\), replacing \(Q_{u,u'}\) and \(Q_{w,w'}\) with \(Q_{u,w}\) and \(Q_{u',w'}\) in \(\mathcal{C}_H\) yields another minimum co-interval cover of \(H\). So, we may assume \(Q_{u,w} \in \mathcal{C}_H\).
We show that \(\mathcal{C}_H' = \mathcal{C}_H \setminus \{Q_{u,w}\}\) is a co-interval cover of \(H \setminus R\), which implies \(\mathop{\mathrm{co-box}}(H\setminus R) \leq \mathop{\mathrm{co-box}}(H) - 1\). If \(u,w,v\) are the only cut-vertices of \(Q\), then \(v \notin R\) implies \(E(H\setminus R) = E(H)\setminus E(Q_{u,w})\). Hence, \(\mathcal{C}_H'\) is a co-interval cover of \(H \setminus R\). Otherwise, \(Q\) has at least \(4\) cut-vertices. We show that in this case, there exists a big ant in \(\mathcal{C}_H'\) containing \(e\) for every \(e \in E(H \setminus R)\). This follows trivially if \(e \notin E(Q_{u,w})\). So, suppose \(e \in E(Q_{u,w})\). Then \(e \in E(Q)\) because \(e\) cannot be incident to vertices in \(R\). Let \(t\) be a cut-vertex in \(V(Q) \setminus \{u,w,v\}\). As \(Q\) is a near-leaf block and \(t\) is not the anchor of \(Q\), there is a leaf block neighbour \(L^t\) of \(Q\) containing \(t\). By 7 , and the fact that all elements of \(\mathcal{C}_H'\) are maximal, the co-interval subgraph of \(H\) in \(\mathcal{C}_H'\) that covers \(E(L^t)\) is a big ant \(Q_{t,t^*}\) for some \(t^* \in V(Q)\). Thus, \(e \in E(Q) \subseteq E(Q_{t,t^*})\) implies that \(e\) is covered by \(\mathcal{C}_H'\). 0◻ ◻
In this section, we prove Theorem 2. We adapt the approach we used to prove Theorem 1. As a first step, we establish two lemmas analogous to Lemmas 7 and 8 for threshold graphs.
Cliques are threshold graphs since they can be constructed by successively adding universal vertices. Similarly, a big ant \(Q_u\) has a threshold graph construction: begin with the clique \(Q \setminus \{u\}\), add the remaining neighbours of \(u\) as isolated vertices, and finally add \(u\) as a universal vertex.
Lemma 11. If \(Q_u\) is a big ant in \(G\), then it is a threshold graph.
Note that for distinct vertices \(u,v\) in which both \(u\) and \(v\) have neighbours outside of \(Q\), the big ant \(Q_{u,v}\) is not a threshold graph because it contains a \(P_4\) as an induced subgraph. A characterization of the maximal threshold subgraphs of a block graph as big ants of the form \(Q_u\) follows from Lemma 8.
Lemma 12. Let \(G\) be a block graph. Then any maximal threshold subgraph of \(G\) is a big ant \(Q_{u}\) in \(G\), where \(Q\) is a block in \(G\).
Proof. Since every threshold graph is a co-interval graph, there exists a maximal co-interval graph \(H'\) in \(G\) containing \(H\). By Lemma 8, \(H' = Q_{u,v}\) for some block \(Q\) of \(G\) and vertices \(u,v \in V(Q)\). Suppose \(H\) is contained within one of \(Q_u\) or \(Q_v\), say \(Q_u\). Then, since \(Q_u\) is a threshold graph by Lemma 11, the maximality of \(H\) implies that \(H = Q_u\). Suppose instead that \(E(H)\) is not contained in either \(E(Q_u)\) or \(E(Q_v)\). Then \(H\) contains edges \(uw\) and \(vw'\) with \(w \in V(Q_{u,v}) \setminus V(Q_{v})\) and \(w' \in V(Q_{u,v}) \setminus V(Q_u)\). Since \(E(H) \subseteq E(Q_{u,v})\), the induced subgraph \(H[\{u,v,w,w'\}]\) is \(P_4\) if \(uv \in E(H)\) and \(2K_2\) otherwise. However, threshold graphs are \(\{P_4, 2K_2\}\)-free, a contradiction. Hence, \(H = Q_u\) or \(H = Q_v\). 0◻ ◻
Now, Algorithm 6 can be adjusted to compute the threshold co-dimension of a block graph by replacing Case [it:case3] with Case 8 stated below.
Figure 8: .
The proof of Theorem 2 is analogous to that of Theorem 1, requiring only minor adjustments to account for the shift from the co-interval to the threshold framework, together with the assumption \(w = u\), which distinguishes Case 8 from Case [it:case3]. We therefore omit the details of the proof.
We conclude this section with a description of the relationship between co-boxicity and threshold co-dimension. It is well-known that for any graph \(G\), \(\mathop{\mathrm{co-box}}(G) \leq \mathop{\mathrm{co-dim_{TH}}}(G)\) 2025_Francis?*Observation 6. In general, the threshold co-dimension of a graph cannot be upper-bounded by a function of its co-boxicity. For example, \(G = K_{n/2,n/2}\) is a co-interval graph satisfying \(\mathop{\mathrm{co-dim_{TH}}}(G) = n/2\) (see 2025_Francis?*Proposition 8). However, for block graphs, these two parameters are close together.
Let \(G\) be a block graph. Then \(\mathop{\mathrm{co-box}}(G) \leq \mathop{\mathrm{co-dim_{TH}}}(G) \leq 2 \mathop{\mathrm{co-box}}(G)\).
Proof. The lower bound follows from the fact that threshold graphs form a subclass of co-interval graphs. Thus, \(\mathop{\mathrm{co-box}}(G) \leq \mathop{\mathrm{co-dim_{TH}}}(G)\). For the upper bound, let \(\mathcal{C}\) be a co-interval cover of \(G\) in which each co-interval subgraph is maximal. By Lemma 8, each co-interval graph in \(\mathcal{C}\) is of the form \(Q_{u,v}\) for some block \(Q\) of \(G\) and vertices \(u,v \in V(Q)\). Then, by Lemma 11, \(Q_u\) and \(Q_v\) are threshold graphs, so a threshold cover of \(G\) can be obtained by covering each co-interval graph in \(\mathcal{C}\) with at most two threshold graphs. Thus, \(\mathop{\mathrm{co-dim_{TH}}}(G) \leq 2 \mathop{\mathrm{co-box}}(G)\). 0◻ ◻
Algorithm 6 illustrates how co-boxicity can be computed by combining two key ingredients: (1) the block-cut tree, which provides an ordering that guides the cover construction through leaf and near-leaf blocks; and (2) a structural characterization of the maximal co-interval subgraphs of the class under consideration. For block graphs, Lemma 8 shows that these maximal subgraphs are precisely big ants, enabling a polynomial algorithm for both co-boxicity and threshold co-dimension.
This method suggests a general approach. For other block-restricted graph classes, if one can characterize the maximal co-interval subgraphs of the blocks and then minimally cover them, then the block-cut tree can perhaps be leveraged to design efficient covering algorithms. The key step that enables this generalization is found in the proof of Lemma 8, which shows that the maximal co-interval subgraphs of any graph are contained in one of the graphs 3 or 4 . Both of these graphs resemble a big ant, except that they extend an entire block instead of a clique. Cactus graphs, in which all blocks are cycles, provide a natural test case, and more generally, classes with blocks drawn from highly constrained classes (e.g. strongly regular graphs) may also be tractable.
Beyond block-restricted classes, an interesting setting arises when ants are the maximal co-interval subgraphs. A large graph class with this property is the class of graphs with girth (i.e. length of a shortest cycle) at least \(5\). Note that for any graph \(G = (V,E)\) with girth at least \(5\), for any ordering \(\sigma\) of \(V\) with \(u_\sigma = \sigma(1)\), \(V_2^{\sigma}\) contains at most one vertex \(v_\sigma\), and so \(G^{\sigma}\) is a subgraph of the \((u_\sigma,v_\sigma)\)-ant. Thus, every maximal co-interval subgraph of \(G\) is an ant. Now, there are at most \(|E|\) maximal co-interval subgraphs of \(G\), each a \((u,v)\)-ant for some edge \(uv \in E\). From this, we can decide whether \(\mathop{\mathrm{co-box}}(G) \leq k\) in \(\mathcal{O}(|E|^k)\) time, and so the co-boxicity decision problem is polynomial. However, it is not known whether computing \(\mathop{\mathrm{co-box}}(G)\) is a polynomial problem. We remark that a greedy approach in which edge-maximizing ant subgraphs are selected is not sufficient, even when \(G\) is a tree. Indeed, a strategy to order the ant subgraphs of trees using near-leaf blocks was shown to be necessary in the proof of Theorem 1.
Another natural class to consider is the class of outerplanar graphs, which are graphs with a planar embedding such that all vertices are incident to the outer face. The dual of the inner faces of an outerplanar embedding forms a tree, distinct from the block-cut tree of the graph. The maximal co-interval subgraphs of outerplanar graphs have not been characterized in general. However, the tree structure of the inner faces might be leveraged to construct minimum co-interval covers. A good first step is to consider the subclass of outerplanar graphs with girth at least \(5\).
The authors are grateful to Amna Adnan, Matthew Barclay, Josh Childs, and the coordinators of the Pacific Institute for the Mathematical Sciences (PIMS) VXML program for initiating this research collaboration. M. Caoduro was supported by a Natural Sciences and Engineering Research Council of Canada Discovery Grant [RGPIN-2021-02475]. W. Evans was supported by NSERC Discovery Grant RGPIN-2022-04449. We gratefully acknowledge that this research was supported in part by PIMS.