This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\publicationdata

vol. 26:320241210.46298/dmtcs.116572023-07-27; 2023-07-27; 2024-04-11; 2024-09-232024-10-02

Recognition of chordal graphs and cographs which are Cover-Incomparability graphs

Arun Anil [email protected]    Manoj Changat [email protected] Department of Futures Studies, University of Kerala, Thiruvananthapuram, Kerala, India.
Abstract

Cover-Incomparability graphs (C-I graphs) are an interesting class of graphs from posets. A C-I graph is a graph from a poset P=(V,)P=(V,\leq) with vertex set VV, and the edge-set is the union of edge sets of the cover graph and the incomparability graph of the poset. The recognition of the C-I graphs is known to be NP-complete (Maxová et al., Order 26(3), 229–236(2009)). In this paper, we prove that chordal graphs having at most two independent simplicial vertices are exactly the chordal graphs which are also C-I graphs. A similar result is obtained for cographs as well. Using the structural results of these graphs, we derive linear-time recognition algorithms for chordal graphs and cographs which are C-I graphs.

keywords:
Cover-Incomparability graphs; Chordal graph; Cographs; Recognition Algorithm.

1 Introduction

The cover-incomparability graphs of posets, or shortly C-I graphs form an interesting class of graphs from posets. These graphs were introduced in [8] as the underlying graphs of the so-called standard transit function of posets. The C-I graphs are precisely the graphs whose edge set is the union of edge sets of the cover graph and the incomparability graph (complement of a comparability graph) of a poset. Graph-theoretic characterization of C-I graphs has not been known until now and, moreover, the recognition complexity of C-I graphs is NP-complete (Maxová et al. [24]). Hence, problems in C-I graphs are focused on identifying the structure and characterization of well-known graph families, which are C-I graphs. Such C-I graphs studied include the family of split graphs, block graphs [7], cographs [9], Ptolemaic graphs [25], distance-hereditary graphs [25], and kk-trees [23]. The C-I graphs were identified among the planar and chordal graphs along with new characterizations of the Ptolemaic graphs, respectively, in [4] and [3]. It is also interesting to note that every C-I graph has a Ptolemaic C-I graph as a spanning subgraph [4]. C-I graphs are also studied among the comparability graphs [1]. The effect of composition operation, lexicographic, and strong products of C-I graphs was studied in a recent paper [2].

Another approach in the theory of C-I graphs is to study posets whose cover-incomparability graphs exhibit specific properties [7, 8, 9]. Characterizations of posets whose cover-incomparability graphs are distance-hereditary and Ptolemaic were given in [8], while those for cographs appear in [9], and for block graphs and split graphs in [7], in terms of forbidden isometric subposets. However, the characterization in terms of forbidden ‘isometric subposets’ in [7, 8, 9] was an error, and it was resolved in [6] by introducing \lhd-preserving subposets instead of isometric subposets.

Chordal graphs or triangulated graphs are graphs that do not have induced cycles of length greater than three. Together with cographs, which are exactly P4P_{4}-free graphs, they form two well-studied graph classes that have wider applications beyond mathematics. These two classes of graphs and their subclasses are also studied in many contexts, including theoretical, practical, and algorithmic interests. A vertex vv of a graph GG is a simplicial vertex if vv together with all its adjacent vertices forms a clique (a complete subgraph) in GG. It is a well-known fact that every chordal graph contains at least one simplicial vertex, and a non complete chordal graph contains at least two nonadjacent simplicial vertices. Chordal graphs that contain exactly two non-adjacent simplicial vertices form a special class of chordal graphs.

The recognition algorithm for an arbitrary chordal graph [30, 27] and a cograph [14] is well known and has linear-time complexity. In this paper, we identify chordal graphs having exactly two non-adjacent simplicial vertices and prove that they are C-I graphs. In other words, we prove that the intersection of the class of chordal graphs and the class of C-I graphs is precisely the class of chordal graphs having exactly two non-adjacent simplicial vertices. We further develop a linear-time algorithm for recognizing such chordal graphs. It is interesting to observe, from [4, 7], that in the class of C-I graphs, the classes of chordal, strongly chordal, and interval graphs are one and the same.

In this paper, similar to the chordal C-I graphs, we develop a linear-time recognition algorithm for cographs which are also C-I graphs from the structural results already proved in [9]. For this algorithm, we make use of the special type of cotree structure of cographs.

Chordal graphs are precisely the intersection graphs of subtrees of a tree [20]. Most of the information contained in a chordal graph is captured in its clique tree representation, which is useful for its algorithmic applications [20, 29].

Cographs are exactly the P4P_{4}-free graphs and the class of cographs has been intensively studied since its definition by Seinsche [28]. The cographs appear as comparability graphs of series-parallel partial orders [22], and can be generated from the single-vertex graph K1K_{1} by complementation and disjoint union operations. It is well known that any cograph has a canonical tree representation called a cotree. This tree decomposition scheme for cographs is a particular case of modular decomposition [19] that applies to arbitrary graphs. Indeed, the algorithm that computes the modular tree decomposition of an arbitrary graph in linear-time can also recognize cographs in linear-time. In 1994, linear-time modular decomposition algorithms were designed independently by Cournier and Habib [15] and by McConnell and Spinrad [26]. In 2001, Dahlhaus et al. [16] proposed a simpler algorithm. In 2004, Habib and Paul [21] proposed a new algorithm, which is not incremental, and instead of building the cotree directly, it first computes a special ordering of the vertices, namely a factorizing permutation, using a very efficient partition refinement techniques via two elementary refinement rules.

A search of a graph visits all vertices and edges of the graph and will visit a new vertex only if it is adjacent to some previously visited vertex. The two fundamental search strategies are Breadth-First Search (BFS) and Depth-First Search (DFS). As the names indicate, BFS visits all previously unvisited neighbors of the currently visited vertex before visiting the previously unvisited non-neighbors. Several greedy recognition algorithms for chordal graphs are known. The most famous is Lex-BFS [27], a variant of BFSBFS, introduced by Rose et al. in [27] and Maximum Cardinality Search (MCS for short) [30]. Both algorithms are linear. The recognition of chordal graphs involves two distinct phases: the execution of MCS or Lex-BFS in order to compute an elimination ordering and a checking procedure to decide whether this elimination ordering is perfect (PEO). By employing Lex-BFS as a basic method to check the chordality and to find the perfect elimination ordering, the recognition algorithm for the chordal graphs can be done in linear-time for chordal graphs which are C-I graphs. For cographs, using the BFS, we can check whether a given rooted tree is the cotree of the C-I cograph in linear-time because of the special structure of the cotrees of these graphs.

The rest of this section is organized as follows. In Section  2, we begin with some preliminaries. In Section 3, we characterize chordal C-I graphs in terms of the number of independent simplicial vertices and present a linear-time algorithm for recognizing chordal C-I graphs based on this characterization. In Section 4, we present a structure of the C-I cograph and characterize the structure of the cotree of C-I cographs and, using this, present a linear-time recognition algorithm for C-I cographs.

2 Preliminaries

A partially ordered set or poset P=(V,)P=(V,\leq) consists of a nonempty set VV and a reflexive, antisymmetric, transitive relation \leq on VV, denoted as P=(V,)P=(V,\leq). We call uVu\in V an element of PP. If uvu\leq v or vuv\leq u in PP, we say uu and vv are comparable, otherwise incomparable. If uvu\leq v but uvu\neq v, then we write u<vu<v. If uu and vv are in VV, then vv covers uu in PP if u<vu<v and there is no ww in VV with u<w<vu<w<v, denoted by uvu\lhd v. We write uvu\lhd\lhd v if u<vu<v but not uvu\lhd v. By u||vu||v, we mean that uu and vv are incomparable elements of PP. In this paper, we consider only posets defined on finite sets. Let VVV^{\prime}\subseteq V and Q=(V,)Q=(V^{\prime},\leq^{\prime}) be a poset, QQ is called a subposet of PP, if uvu\leq^{\prime}v if and only if uvu\leq v, for any u,vVu,v\in V^{\prime}. The subposet Q=(V,)Q=(V^{\prime},\leq) is a chain (antichain) in PP, if every pair of elements of VV^{\prime} is comparable (incomparable) in PP. A chain of maximum cardinality is named as the height of PP denoted as h(P)h(P). An element uu in PP is a minimal (maximal) if there is no xVx\in V such that xu(ux)x\leq u(u\leq x) in PP. A finite ranked poset (also known as graded poset [11]) is a poset P=(V,)P=(V,\leq) that is equipped with a rank function ρ:V\rho:V\rightarrow\mathbb{Z} satisfying:

  • ρ\rho has value 0 on all minimal elements of PP, and

  • ρ\rho preserves covering relations: if aba\lhd b then ρ(b)=ρ(a)+1\rho(b)=\rho(a)+1.

A ranked poset PP is said to be complete if for every ii, every element of rank ii covers all elements of rank i1i-1. For a completely ranked poset P=(V,)P=(V,\leq) we say that the element vVv\in V is at height ii if ρ(v)=i1\rho(v)=i-1. For disjoint posets, P1=(V1,)P_{1}=(V_{1},\leq) and P2=(V2,)P_{2}=(V_{2},\leq), the sum of the posets, Z=P1+P2Z=P_{1}+P_{2} is defined as the poset (V1V2,)(V_{1}\cup V_{2},\leq), where z1z2z_{1}\in z_{2} in ZZ, if and only if z1z2z_{1}\leq z_{2} in P1P_{1} or z1z2z_{1}\leq z_{2} in P2P_{2}. We refer to [11], for notions of posets.

Let G=(V,E)G=(V,E) be a connected graph, vertex set and edge set of GG denoted as V(G)V(G) and E(G)E(G) respectively, the complement of GG is denoted as G¯\overline{G}. For a vertex vV(G)v\in V(G), the set of all vertices adjacent to vv is called the open neighborhood of vv and is denoted by N(v)N(v). The set consisting of the open neighborhood and the vertex vv is the closed neighborhood of vv and is denoted by N[v]N[v]. A tree is a graph in which two vertices are connected by exactly one path. Let TT be a rooted tree and two vertices xx and yy in TT, we say that xx is an ancestor of yy and yy is a descendant of xx if xx lies on the path from yy to the root of TT. For a set of leaves SS of TT, we say that the lowest common ancestor (LCA) of SS is the internal node vv of TT such that vv is the root of the smallest rooted subtree of TT containing SS. A graph HH is said to be a subgraph of GG if V(H)V(G)V(H)\subseteq V(G) and E(H)E(G)E(H)\subseteq E(G). HH is an induced subgraph of GG if for u,vV(H)u,v\in V(H) and uvE(G)uv\in E(G) implies uvE(H)uv\in E(H). A graph GG is said to be H-free if GG has no induced subgraph isomorphic to HH. A complete graph is a graph whose vertices are pairwise adjacent, denoted KnK_{n}, a set SV(G)S\subseteq V(G) is a clique if the subgraph of GG induced by SS is a complete graph, and a maximum clique is a clique that is not contained by any other clique. A vertex vv is called simplicial vertex if its neighborhood induces a complete subgraph. An independent set in a graph is a set of pairwise non-adjacent vertices. If graphs G1G_{1} and G2G_{2} have disjoint vertex set V1V_{1} and V2V_{2} and edge set E1E_{1} and E2E_{2} respectively, then their union G=G1G2G=G_{1}\cup G_{2} has V=V1V2V=V_{1}\cup V_{2} and E=E1E2E=E_{1}\cup E_{2} and their join, denoted by G1G2G_{1}\vee G_{2}, consists of G=G1G2G=G_{1}\cup G_{2} and all edges joining V1V_{1} with V2V_{2}.

A graph GG is chordal if it contains no induced cycles of length more than 3. A graph GG is distance-hereditary if every induced path is also the shortest path in GG. A graph GG is Ptolemaic if it is distance-hereditary and chordal. Equivalently, GG is Ptolemaic if and only if it is a 3-fan-free chordal graph. P4P_{4}-free graphs are called cographs. A graph GG that is both chordal and cograph is called chordal cograph, also known as trivially perfect graph. Let P=(V,)P=(V,\leq) be a poset. A graph GG is the cover graph of PP if V(G)=VV(G)=V and uvE(G)uv\in E(G) if and only if either uvu\lhd v or vuv\lhd u in PP. Similarly, GG is the comparability graph of PP if V(G)=VV(G)=V and uvE(G)uv\in E(G) if and only if uu and vv are comparable in PP. The incomparability graph is the complement of the comparability graph. Finally, the cover-incomparability graph (C-I graph) of a poset P=(V,)P=(V,\leq) denoted as GPG_{P} is the graph G=(V,E)G=(V,E), where uvE(G)uv\in E(G), if uvu\lhd v or vuv\lhd u or u||vu||v in PP. A graph is a C-I graph if it is the C-I graph of some poset PP. It may be noted that the class of C-I graphs is not a hereditary class in the sense that every induced subgraph of a C-I graph need not be a C-I graph. We call a graph that is both a chordal and a C-I graph as a chordal C-I graph. Similarly, we use the term Ptolemaic C-I graph, C-I cograph, chordal C-I cograph, etc. to denote the C-I graph which is Ptolemaic, cograph, chordal cograph, etc.

Fig. 1: (a) A poset PP, (b) incomparability graph of the poset PP, and (c) cover-incomparability graph of the poset PP.

In Figure 1 (a), we illustrates the Hasse diagram of a poset PP, which is isomorphic to the cover graph of PP. Figure 1(b), depicts the incomparability graph of the poset PP, and in Figure 1(c), we depicts the C-I graph of PP. As already mentioned, the class of C-I graphs is not hereditary; for example, the 4-fan is a C-I graph (as shown in Figure 1(c)), but the claw graph is an induced subgraph of this graph, which is not a C-I graph.

Now we recall some basic properties of posets and their C-I graphs.

Lemma 1.

[8] Let P be a poset. Then

  1. (i)

    the C-I graph of P is connected;

  2. (ii)

    points of P that are independent in the C-I graph of P lie on a common chain;

  3. (iii)

    an antichain of P corresponds to a complete subgraph in the C-I graph of P;

  4. (iv)

    the C-I graph of P contains no induced cycles of length greater than 4.

Lemma 2.

[25] If GG is a C-I graph, then GG does not contain 3 independent simplicial vertices.

Lemma 3.

[25] Let PP be a poset and GG its C-I graph. If vv is a simplicial vertex in GG, then vv is a maximal or a minimal element of PP.

Theorem 1.

[23] Let G=(V,E)G=(V,E) be a C-I graph of a poset PP and vVv\in V a minimal or maximal element in PP. Then G\vG\backslash v is also a C-I graph.

In the following sections, we discuss algorithms for recognizing chordal C-I graphs and C-I cographs.

3 Structure of chordal C-I graphs

In this section, we study the structure of chordal C-I graphs. For that, we prove that a chordal graph having exactly two independent vertices is a chordal graph that is also a C-I graph.

If vv is a simplicial vertex of a chordal graph GG, then the closed neighborhood N[v]N[v] is a clique in GG. So removal of vv does not affect the chordal property of G{v}G\setminus\{v\}. This is stated in the following remark.

Remark 1.

If GG is a chordal graph and vv is a simplicial vertex, then GvG\setminus v is chordal.

Lemma 4.

Let GG be a chordal graph, and vv be a simplicial vertex of GG. If GG has exactly two independent simplicial vertices, then either GvG\setminus v is chordal and has exactly two independent simplicial vertices or GvG\setminus v is a complete graph.

Proof.

Let GG be a chordal graph with exactly two independent simplicial vertices and vv be a simplicial vertex. Then by Remark 1, GvG\setminus v is a chordal graph. Since vv is a simplicial vertex, the removal of vv from GG does not increase the number of independent simplicial vertices in GvG\setminus v. And if GvG\setminus v is not a complete graph, then removal of vv from GG does not decrease the number of independent simplicial vertex in GvG\setminus v. That is, GvG\setminus v has exactly two independent simplicial vertices, otherwise GvG\setminus v is a complete graph. Hence the lemma. ∎

From Lemmas 3-4 and Theorem 1, we get the following corollary.

Corollary 1.

Let GG be a chordal C-I graph and vv be a simplicial vertex of GG. If GG has exactly two independent simplicial vertices, then GvG\setminus v is a chordal C-I graph and has exactly two independent simplicial vertices or GvG\setminus v is a complete graph.

A pendant clique of a graph GG is a clique that contains a clique separator CC such that one of the components obtained after removing CC is a single vertex. Observe that if GG is a chordal graph, then GG has a pendant clique.

Let GG be a chordal graph having at most two independent simplicial vertices. We denote by 𝒢\mathscr{G} the family of chordal graphs obtained from GG by adding a vertex vv to GG such that vv is adjacent to some or all vertices in a pendant clique of GG.

The following remark is immediate.

Remark 2.

Let GG^{\prime} be a chordal graph having exactly two independent simplicial vertices. If GG is the graph obtained by adding a simplicial vertex vv to GG^{\prime} such that the resulting graph has exactly two independent simplicial vertices, then GG belongs to the family 𝒢\mathscr{G}.

Lemma 5.

Let GG^{\prime} be a chordal C-I graph having exactly two independent simplicial vertices, and let GG be a graph obtained by adding a simplicial vertex vv to GG^{\prime}. If GG has exactly two independent simplicial vertices, then GG is a chordal C-I graph.

Proof.

Let GG be a chordal graph obtained by adding a simplicial vertex vv to a chordal GG^{\prime} that has exactly two independent simplicial vertices such that GG also has exactly two independent simplicial vertices. Then by Remark 2, the vertex vv is such that vv is adjacent to some or all vertices in a pendant clique in GG^{\prime}.

Now we need to prove that GG is a chordal C-I graph. Since GG^{\prime} is both a C-I graph and chordal, let PP^{\prime} be a poset such that GPGG_{P^{\prime}}\cong G^{\prime}. Since the vertex vv is added to some or all vertices in a pendant clique in GG^{\prime}, the graph GG is chordal. Since GPG_{P}^{\prime} is chordal and has exactly two independent simplicial vertices, GPG_{P}^{\prime} has exactly two pendant cliques, and the two pendent cliques are formed, respectively, by SS and SS^{\prime}, where SS and SS^{\prime} are defined as follows.
M={uPu is a maximal element of P}M=\{u\in P^{\prime}\mid u\text{ is a maximal element of }P^{\prime}\}, S1={wPwu,uM}S_{1}=\{w\in P^{\prime}\mid w\lhd u,u\in M\}, M={uPu is a minimal element of P}M^{\prime}=\{u\in P^{\prime}\mid u\text{ is a minimal element of }P^{\prime}\}, S1={wPuw,uM}S_{1}^{\prime}=\{w\in P^{\prime}\mid u\lhd w,u\in M^{\prime}\} S=MS1{uS1wS1,uw in P}S=M\cup S_{1}\setminus\{u\in S_{1}\mid\exists w\in S_{1},u\lhd\lhd w\text{ in }P^{\prime}\} and
S=MS1{uS1wS1,wu in P}S^{\prime}=M^{\prime}\cup S_{1}^{\prime}\setminus\{u\in S_{1}^{\prime}\mid\exists w\in S_{1}^{\prime},w\lhd\lhd u\text{ in }P^{\prime}\}. Now vv is adjacent to some or all vertices of the set SS or SS^{\prime} in GG. If vv is adjacent to some vertices of SS, then vv must be adjacent to all the elements of MM, as otherwise there will be more than two independent simplicial vertices. Similarly, if vv is adjacent to some vertices of SS^{\prime}, then vv must be adjacent to all elements of MM^{\prime}. Now, we construct a poset PP from PP^{\prime} as follows.

If vv adjacent to some vertices of SS:

  • If vv is adjacent to only the elements in MM, then PP is constructed from PP^{\prime} with the covering relation defined as uvu\lhd v for all uMu\in M.

  • If vv is adjacent to the elements of S0S_{0}, where MS0SM\subset S_{0}\subset S, then PP is constructed from PP^{\prime} with the covering relation as uvu^{\prime}\lhd v for all uS0Mu^{\prime}\in S_{0}\setminus M and u′′uvu^{\prime\prime}\lhd u\lhd v for all u′′SS0u^{\prime\prime}\in S\setminus S_{0} for some uMu\in M.

  • If vv is adjacent to all elements of SS, then PP is constructed from PP^{\prime} with the covering relation defined as uvu\lhd v for all uSMu\in S\setminus M.

Similarly, if vv adjacent to some vertices of SS^{\prime}:

  • if vv is adjacent to only the elements in MM^{\prime} then PP is constructed from PP^{\prime} with the covering relation defined as vuv\lhd u for all uMu\in M^{\prime}.

  • if vv is adjacent to the elements of S0S_{0}^{\prime}, where MS0SM^{\prime}\subset S_{0}^{\prime}\subset S^{\prime}, then PP is constructed with the covering relation defined as vuv\lhd u^{\prime} for all uS0Mu^{\prime}\in S_{0}^{\prime}\setminus M^{\prime} and vuu′′v\lhd u\lhd u^{\prime\prime} for all u′′SS0u^{\prime\prime}\in S^{\prime}\setminus S_{0}^{\prime} and some uMu\in M^{\prime}.

  • If vv is adjacent to all elements of SS^{\prime}, then PP is constructed from PP^{\prime} with the covering relation vuv\lhd u for all uSMu\in S^{\prime}\setminus M^{\prime}.

It follows from construction that PP is a well-defined poset and that GG is isomorphic to GPG_{P}. That is, GG is a chordal C-I graph. Hence the lemma. ∎

A perfect elimination ordering (PEO) is an ordering π=v1,,vn\pi=v_{1},\ldots,v_{n} of vertices in GG such that the neighborhood N[vi]N[v_{i}] of viv_{i} is a clique of the subgraph G{vi,,vn}G_{\{v_{i},\ldots,v_{n}\}} induced by the vertices {vi,,vn}\{v_{i},\ldots,v_{n}\} of GG. The following characterizations of chordal graphs are well known.

Theorem 2.

[18] A graph GG is chordal if and only if GG has a perfect elimination ordering.

Lemma 6.

[17] Every chordal graph GG has a simplicial vertex. If GG is not complete, then it has two non-adjacent simplicial vertices.

In the following, we prove an interesting characterization of C-I chordal graphs as precisely those chordal graphs having exactly two independent simplicial vertices.

Theorem 3.

Let GG be a chordal graph. Then GG is a C-I graph if and only if GG is a complete graph or GG has exactly two independent simplicial vertices.

Proof.

Suppose GG is a chordal and C-I graph, then GG is a complete graph, or GG contains exactly two independent simplicial vertices by Lemma 2 and 6.

Conversely, every complete graph is a C-I graph. It remains to prove that if GG is chordal and GG has exactly two independent simplicial vertices, then GG is a C-I graph.

Let GG be the chordal graph with the vertex set V(G)={v1,v2,v3,,vn}V(G)=\{v_{1},v_{2},v_{3},\ldots,v_{n}\}. Since GG is chordal, there is a perfect elimination ordering(PEO), let vn,vn1,,v2,v1v_{n},v_{n-1},\ldots,v_{2},v_{1} be a PEO in GG. By the definition of PEO on a chordal graph, the neighborhood N(vni)N(v_{n-i}) of vniv_{n-i} is a clique in the subgraph G{vn{i+1},,v1}G_{\{v_{n-\{i+1\}},\ldots,v_{1}\}}, for i=0,1,n1i=0,1,\ldots n-1 and also the subgraphs G{vn(i+1),,v1}G_{\{v_{n-(i+1)},\ldots,v_{1}\}} are chordal for i=0,1,n1i=0,1,\ldots n-1.

According to Lemma 4, if a chordal graph has exactly two independent simplicial vertices, then the removal of a simplicial vertex results in either a chordal graph with exactly two independent simplicial vertices or a complete graph. We eliminate the simplicial vertices until we get the smallest non-trivial chordal graph containing exactly two independent simplicial vertices, say GkG_{k}. The removal of a simplicial vertex from GkG_{k} results in a complete graph. That is, Gk1G_{k-1} is a complete graph with Gk1=GkvkG_{k-1}=G_{k}\setminus{v_{k}}, where vkv_{k} is a simplicial vertex in GkG_{k}. Clearly, Gk1G_{k-1} is a C-I graph being a complete graph. Now, we add the simplicial vertex vkv_{k} to Gk1G_{k-1} and form the graph GKG_{K} by adding the deleted edges back. We continue this process by adding the eliminated simplicial vertices vk+1,vk+2,vnv_{k+1},v_{k+2},\ldots v_{n} and deleted edges in the reverse order in the PEO to the graphs Gk,Gk+1,Gn1G_{k},G_{k+1},\ldots G_{n-1}, respectively obtaining finally the graph GnGG_{n}\cong G.

It may be noted that we add edges so that the resulting graph obtained in each stage contains exactly two independent simplicial vertices.

In particular, the graph GkG_{k} is obtained by adding the simplicial vertex vkv_{k} to Gk1G_{k-1}. The vertex vkv_{k} is adjacent to some vertices of Gk1G_{k-1}. Let Ck1V(Gk1)C_{k-1}\subset V(G_{k-1}) and Ck1=V(Gk1)Ck1C_{k-1}^{\prime}=V(G_{k-1})\setminus C_{k-1} such that vkv_{k} is adjacent to every element of Ck1C_{k-1} and not adjacent to any element of Ck1C_{k-1}^{\prime}. We form a poset, say P0P_{0} consisting of elements, Ck1C_{k-1}^{\prime}, vkv_{k}, and Ck1C_{k-1}. Now fix Ck1C_{k-1}^{\prime} as the set of minimal elements, vkv_{k} covering every element in Ck1C_{k-1}^{\prime} and all elements of Ck1C_{k-1} covering vkv_{k}. It is clear that the C-I graph of P0P_{0} is isomorphic to GkG_{k}. That is, we obtain that GkG_{k} is a C-I graph. It is in-fact a Ptolemaic C-I graph of the completely ranked poset with rank 2, where Ck1C_{k-1}^{\prime} represents elements of rank 0, vkv_{k} represents the element of rank 1 and Ck1C_{k-1} represents elements of rank 2. Thus GkG_{k} is a chordal C-I graph with exactly two simplicial vertices.

Now the graph Gk+1G_{k+1} is obtained by adding the simplicial vertex vk+1v_{k+1} and the deleted edges to GkG_{k} and from Lemma 5, we obtain that Gk+1G_{k+1} is a chordal C-I graph having exactly two independent simplical vertices. By by the inductive arguments, we have that Gk+2,Gk+3,,GnG_{k+2},G_{k+3},\ldots,G_{n} are chordal C-I graphs with exactly two independent simplicial vertices. Finally, we get that the graph GnG_{n} is isomorphic to GG and hence GG is a C-I graph. Hence the theorem.

3.1 Recognition of chordal C-I graphs

In this section, we design an algorithm for recognizing chordal C-I graphs. For this, we use the clique tree representation of a chordal graph. Since this algorithm computes a clique tree, if the graph is a chordal graph explicitly, it turns out that the algorithm provides a certification. It is well known that a chordal graph GG can be characterized as the intersection graph of subtrees of some tree TT. Such a tree is known as the clique tree of GG. This well-known theorem is proved independently by Buneman [12] and Gavril [20]. A tree representation of a chordal graph GG is a pair (T,)(T,\mathscr{F}) where TT is a tree and \mathscr{F} is a family of subtrees of TT such that the intersection graph of \mathscr{F} is isomorphic to GG. Further Gavril [20] has shown that given a chordal graph GG, it is possible to construct a tree TT with vertex set K={q1,q2,,qr}K=\{q_{1},q_{2},\ldots,q_{r}\} where qiq_{i} corresponds to the maximal clique QiQ_{i} of GG, such that (T,{Rv1,Rv2,,Rvn})(T,\{R_{v_{1}},R_{v_{2}},\ldots,R_{v_{n}}\}) is a tree representation of GG. Here, each RviR_{v_{i}}, 1in1\leq i\leq n, is the set of maximal cliques that contain the vertex viv_{i}, that is, Rvi={qjviQj}R_{v_{i}}=\{q_{j}\mid v_{i}\in Q_{j}\}. Such a tree representation of GG is called a clique tree of GG. The clique tree TT of GG need not be unique, for the sets RiR_{i} determine the edges of TT, not necessarily in a unique manner. Fig.2 shows a chordal graph and two of its clique trees.

Fig. 2: A chordal graph and two of its clique trees
Theorem 4 (Gavril [20] and Buneman [12]).

The following propositions are equivalent:

  1. 1.

    GG is a chordal graph.

  2. 2.

    GG is the intersection graph of a family of subtrees of a tree.

  3. 3.

    There exists a tree TT(called clique tree) with vertex set {q1,q2,,qr}\{q_{1},q_{2},\ldots,q_{r}\} such that for each vertex vv, the set Rv={qivQi}R_{v}=\{q_{i}\mid v\in Q_{i}\} induces a subtree of TT. Here qiq_{i} represents the maximal clique QiQ_{i}.

From the above description, we have that a graph GG is a chordal graph if and only if there exists a clique tree TT with maximal cliques of GG as the vertices of TT and any two cliques containing vV(G)v\in V(G) are either adjacent in TT or connected by a path of cliques that contain vv. The Lemma below is also very useful in understanding the structure of chordal graphs and their simplicial vertices.

Lemma 7.

[5] A vertex is simplicial if and only if it belongs to precisely one maximal clique.

Even though the result of the following lemma is a known property of chordal graphs, we require this for establishing the recognition of chordal graphs which are C-I graphs, and hence we state it below.

Lemma 8.

Every leaf node of a clique tree of a chordal graph contains a simplicial vertex.

Proof.

Let TT be a clique tree of a chordal graph GG. Let CkC_{k} be a leaf node of TT. Since CkC_{k} is a leaf node of TT there is a node CkC_{k^{\prime}} in TT such that CkCkE(T)C_{k}C_{k^{\prime}}\in E(T). Since TT is a clique tree of GG every node of TT is a maximal clique of GG, and hence there is a vertex vv of GG in CkC_{k} but not in CkC_{k^{\prime}}. From the definition of the clique tree, it is clear that vv is not in any other nodes of TT (cliques). Then it follows that vv is a simplicial vertex by Lemma 7. ∎

The following lemma will also be useful for the recognition of chordal C-I graphs.

Lemma 9.

Let GG be a chordal graph with the clique tree TT being a path. Let CiC_{i} be an internal node of TT, Ci+1C_{i+1}, the parent node of CiC_{i}, and Ci1C_{i-1} the child node of CiC_{i} in TT. If vv is vertex of GG such that vCiCi+1v\in C_{i}\setminus C_{i+1} and vCiCi1v\in C_{i}\setminus C_{i-1}, then vv is a simplicial vertex in GG.

Proof.

Since vCiCi+1v\in C_{i}\setminus C_{i+1} and vCiCi1v\in C_{i}\setminus C_{i-1} and TT is a path, it follows from the definition of a clique tree that vv is not in any other cliques in TT. Then by Lemma 7, vv is a simplicial vertex. ∎

Based on Theorem  3 and Lemma 8 and 9, we formulate the following algorithm for recognizing a chordal C-I graph GG. The correctness of the algorithm follows from these results.

Input : GG be a connected graph with |V(G)|=n|V(G)|=n and |E(G)|=m|E(G)|=m
Output : GG is chordal C-I graph or not
  • 1Step 1:

    Apply the perfect elimination ordering (PEO) on GG and check whether GG is a chordal graph or not.

If there is no PEO then return GG not chordal and stop. Otherwise, go to Step 2.
  • 2Step 2:

    Using the PEO find the clique tree TT of the given graph GG using Blair-Peyton algorithm.

  • 3 If the clique tree has more than 2 leaf nodes, then return GG, not chordal C-I graph, and stop.
    Otherwise, go to Step 3. (Now the clique tree is a path, and the vertices are in order C1,C2,,CkC_{1},C_{2},\ldots,C_{k})
  • 4Step 3:

    Check whether there is an element in CiC_{i} that is not in Ci+1C_{i+1} and Ci1C_{i-1} for i=2,3,,k1i=2,3,\ldots,k-1.

  • 5 If such an element exists at any stage, then stop and return GG as not a chordal C-I graph.
    Otherwise, return GG as a chordal C-I graph.
    Algorithm 1 Algorithm for recognizing given graph GG is chordal C-I graph GG or not.

    The time complexity of Algorithm 1 can be analyzed as follows.

    Using Lex-BFS or MCS, a PEO can be found in O(n+m)O(n+m) time. In Step 2, the Blair-Peyton algorithm is used to construct a clique tree from a chordal graph based on the PEO [5]. This algorithm also runs in linear time, O(n+m)O(n+m). Additionally, checking whether there are more than two leaf nodes can be done in constant time.

    In Step 3, let kk be the length of the clique tree which is a path PP. Then, in the worst case, the size of the sets CiC_{i} is of the order O(n/k)O(n/k). To check whether an element vCiCi+1v\in C_{i}\setminus C_{i+1} and vCiCi1v\in C_{i}\setminus C_{i-1} takes O(3n/k)O(3n/k) time by using a hash set operation. Since there are at most k2k-2 internal nodes, the total time for Step 3 is O(n)O(n). Now, the complexity of Algorithm 1 is O(n+m)O(n+m).

    According to Theorem 3, a graph GG is a chordal C-I graph if and only if GG is either a complete graph or has exactly two independent simplicial vertices. Lemma 7 and Lemma 8 further imply that the clique tree of a chordal C-I graph contains exactly two leaf nodes, meaning that the clique tree forms a path. The next step is to certify that none of the internal vertices of the clique tree contain simplicial vertices. Lemma 7 and Lemma 9 address this in Step 3 of the algorithm.

    Since the Blair-Peyton algorithm explicitly computes the clique tree when GG is a chordal graph and after Steps 2 and 3 of the algorithm outputs a clique tree which is a path and contains no internal vertices with simplicial vertices, if the given graph is a chordal C-I graph. So the algorithm actually returns a chordal C-I graph if GG is such a graph, which is a certification model.

    4 Structure of C-I cographs

    In this section, we present an algorithm for recognizing C-I cograph.

    Theorem 5.

    [9] Let GG be a chordal cograph. Then GG is a C-I graph if and only if GG is a connected graph that contains at most two maximal cliques.

    From Theorem 5, we get the following remark

    Remark 3.

    A graph GG is a chordal C-I cograph if and only if there exists three pairwise disjoint sets C1,C2C_{1},C_{2} and C3C_{3} such that V(G)=C1C2C3V(G)=C_{1}\cup C_{2}\cup C_{3}, and x,yV(G)x,y\in V(G) are adjacent in GG if and only if x,yC1C2x,y\in C_{1}\cup C_{2} or x,yC2C3x,y\in C_{2}\cup C_{3}.

    That is, C1,C2,C3,C1C2C_{1},C_{2},C_{3},C_{1}\cup C_{2} and C2C3C_{2}\cup C_{3} form cliques and the graph has no other edges. So in the C-I chordal cograph, if xy,xzE(G)xy,xz\notin E(G) then yzE(G)yz\in E(G). It is clear that a chordal C-I cograph is a Ptolemaic C-I graph as it is a C-I graph of a completely ranked poset of height 3. The structure of an arbitrary chordal C-I cograph is shown in Fig. 3.

    Fig. 3: General structure of a chordal C-I cograph GG
    Theorem 6.

    [9] A graph GG is a C-I cograph if and only if GG is the join of chordal C-I cographs.

    From Theorem 6, we get the following remark.

    Remark 4.

    Let GG be a C-I cograph such that G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots\vee G_{k}, where GiG_{i}’s are chordal C-I cographs. By Remark 3, there exists a pairwise disjoint set C1i,C2iC_{1}^{i},C_{2}^{i} and C3iC_{3}^{i} such that V(Gi)=C1iC2iC3iV(G_{i})=C_{1}^{i}\cup C_{2}^{i}\cup C_{3}^{i} and xyE(Gi)xy\in E(G_{i}) if and only if x,yC1iC2ix,y\in C_{1}^{i}\cup C_{2}^{i} or x,yC2iC3ix,y\in C_{2}^{i}\cup C_{3}^{i}. Thus in GG, i=1kC2i\bigcup\limits_{i=1}^{k}C_{2}^{i} are universal vertices and for u,vV(G)u,v\in V(G) such that uvE(G)uv\notin E(G) if and only if both uu and vv in V(Gi)V(G_{i}) with uC1iu\in C_{1}^{i} and vC3iv\in C_{3}^{i}, for some ii. Thus, for any u,v,wV(G)u,v,w\in V(G) with uv,uwE(G)uv,uw\notin E(G), then vwE(G)vw\in E(G).

    The structure of an arbitrary C-I cograph is depicted in Fig. 4.

    Fig. 4: General structure of a C-I cograph GG
    Lemma 10.

    Let GG be a C-I cograph then there exists a poset P=P1+P2++PrP=P_{1}+P_{2}+\cdots+P_{r}, where PiP_{i}’s are completely ranked poset of rank 2 such that GGPG\cong G_{P}.

    Proof.

    Let GG be a C-I cograph. Then GG is the join of chordal C-I cographs. That is, let G=G1G2GrG=G_{1}\vee G_{2}\vee\dots G_{r}. Since GiG_{i}’s are chordal cographs, GiG_{i}’s are C-I graphs of the completely ranked poset PiP_{i}’s of rank at most 2. Hence P=P1+P2++PrP=P_{1}+P_{2}+\cdots+P_{r}. ∎

    Fig. 5: Claw
    Lemma 11.

    If GG is a C-I cograph then GG is a claw-free graph.

    Proof.

    Let GG be a C-I cograph and G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots\vee G_{k}, where GiG_{i}’s are chordal C-I cograph for i=1,2,ki=1,2,\ldots k. Suppose that GG contains an induced claw by the vertices {u,v,w,x}V(G)\{u,v,w,x\}\subseteq V(G) with edges ux,vx,wxE(G)ux,vx,wx\in E(G) and uv,vw,uwE(G)uv,vw,uw\notin E(G) (see Fig.7). Since G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots\vee G_{k}, the non-adjacent vertices lie in the same GjG_{j} for some j{1,2,,k}j\in\{1,2,\ldots,k\}. That is, u,v,wV(Gj)u,v,w\in V(G_{j}). Since GjG_{j} is a chordal C-I cograph, if uv,uwE(Gj)uv,uw\notin E(G_{j}) then vwE(Gj)vw\in E(G_{j}), which is a contradiction. Hence, the C-I cograph is a claw-free graph. ∎

    A cotree is a tree in which the internal nodes are labelled with the numbers 0 and 1. Every cotree TT defines a cograph GG having the leaves of TT as vertices, and in which the subtree rooted at each node of TT corresponds to the induced subgraph in GG defined by the set of leaves descending from that node. A subtree rooted at a node labelled 0 corresponds to the union of the subgraphs defined by the children of that node and a node labelled 1 corresponds to the join of the subgraphs defined by the children of that node. The cotree satisfies the property that, on every root-to-leaf path, leaves are the vertices of the graph, the labels of the internal nodes alternate between 0 and 1, and every internal node has at least two children. The cotree can be easily obtained from any tree labelled with such 0/10/1 TT by coalescing all pairs of child-parent nodes in TT having the same label or where the parent has only one child. Vertices xx and yy of GG are adjacent in GG if and only if their lowest common ancestor(LCA) in the cotree is labelled 1. This representation is unique and every cograph can be represented in this way by a cotree [13]. Since GG is a connected graph, the root of the cotree is a 1-node.

    It is known that cographs have a unique tree representation, called a cotree. Using the cotree, it is possible to design very fast polynomial-time algorithms for problems that are intractable for graphs in general. Such problems include chromatic number, clique determination, clustering, minimum weight domination, isomorphism, minimum fill-in, and Hamiltonicity. A linear-time cograph recognition algorithm, such as those in [10, 14, 21], which also builds a cotree, a data structure that fully encodes the cograph.

    The Fig. 6 illustrates a cograph GG and an embedding of the corresponding cotree TGT_{G}. The leaves of TGT_{G} represent the set of vertex V(G)V(G), and each internal node signifies the union (0) or the joining (1) operations in the children. The significance of the 0(1) nodes is captured by the fact that xyE(G)xy\in E(G) if and only if LCA(x,y)LCA(x,y) is a 1 node, as shown in Fig. 6.

    Fig. 6: GG be a cograph and TGT_{G} be the cotree of GG
    Fig. 7: Cotree for C-I cograph (𝒯𝒞)(\mathcal{T_{C}})

    The general structure of the cotree of C-I cographs is shown in Fig. 7, and we denote the family of cotree of C-I cograph as 𝒯𝒞\mathcal{T_{C}}. The children of the root node are referred to as level 2 nodes, while the children of level 2 nodes are termed level 3 nodes. Let GG be a C-I cograph, G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots\vee G_{k}, where GiG_{i}’s are chordal C-I cographs. Then by Remark 4, two vertices xx and yy are not adjacent in GG if and only if xC1ix\in C_{1}^{i} and yC3iy\in C_{3}^{i} for i=1,2,,ki=1,2,\ldots,k. Therefore, in the cotree, the lowest common ancestor(LCA) of xx and yy is 0-node. That is, LCA(x,y)=0LCA(x,y)=0 for xC1ix\in C_{1}^{i} and yC3iy\in C_{3}^{i}. In other cases, LCA is a 1-node. That is, LCA(x,y)=0LCA(x,y)=0 for xC1ix\notin C_{1}^{i} and yC3iy\notin C_{3}^{i}.

    Lemma 12.

    The cotree of a C-I cograph which is not a complete graph satisfies the following properties:

    • (i)

      The root node (which is a 1-node) of 𝒯𝒞\mathcal{T_{C}} has leaf nodes and 0-nodes as children. the number of 0-nodes (which are children of the root node) is always less than or equal to the number of leaf nodes (which are children of the root node).

    • (ii)

      Every 0-node has exactly two children (both the children are 1-nodes or both the children are leaves nodes or one child is a leaf node and another child is 1-node).

    • (iii)

      The 11-nodes other than the root node have only leaf nodes as children.

    • (iv)

      The cotree of GG belongs to the family of 𝒯𝒞\mathcal{T_{C}}.

    Proof.

    Let GG be a C-I cograph which is not a complete graph.

    • (i)

      Since GG is not a complete C-I graph, it is either a chordal cograph or joins of chordal cographs. Since there are non-adjacent vertices, there exist some 0-nodes as children of the root node. From the structure of the C-I cograph, there exist universal vertices, which should be leaf nodes of the root node. From Theorem 6, G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots\vee G_{k}, where GiG_{i} are chordal C-I cographs. The leaf nodes of the subtree rooted by each 0-node contain the non-universal vertices of each GiG_{i}. That is, if there are kk 0-nodes, then since the universal vertices of each GiG_{i}, are also universal vertices of GG, and since each GiG_{i} has at least one universal vertex, the number of 0-nodes of the root node must be at most the number of leaf nodes as a child nodes. Hence (i) follows.

    • (ii)

      Suppose there are 0-nodes having more than two children. Let 00^{\prime} be a 0-node having three child nodes. Let u,v,wu,v,w be the three leaf nodes from the different branches of the subtree with the root node as the 00^{\prime}-node. Then by the structure of the C-I cograph, we have that uv,vw,uwE(G)uv,vw,uw\notin E(G). Let xx be a leaf node of the root of the cotree 𝒯𝒞\mathcal{T_{C}}. Then xx is adjacent to u,vu,v and ww. That is, {u,v,w,x}\{u,v,w,x\} induce a claw in GG which is a contradiction to Lemma 11. So every 0-node has no more than two children. In a cotree, every node has a minimum of two child nodes. Hence every 0-node has exactly two child nodes as 1-nodes. Hence (ii) follows.

    • (iii)

      Suppose that there is a 11-node other than the root node which has a 0-node, say 00^{\prime}. Consider a subtree TT of 𝒯𝒞\mathcal{T_{C}} with rooted in 00^{\prime}. Let uu and vv be the vertices of GG such that the LCA(u,v)LCA(u,v) is 00^{\prime}. The vertices uu and vv exist since the subtree TT has exactly two branches. Now consider the subtree TT^{\prime} of 𝒯𝒞\mathcal{T_{C}} containing TT with root as a 0-node, say 0′′0^{\prime\prime} different from 00^{\prime}. Let ww be a vertex of GG such that the LCA(u,v,w)LCA(u,v,w) is 0′′0^{\prime\prime} ( the vertex ww exists since there are two children from 0′′0^{\prime\prime} of TT^{\prime}). Clearly, the vertices u,v,wu,v,w are mutually non-adjacent. Now any vertex xx of GG which are leaves of the root node 1 of 𝒯𝒞\mathcal{T_{C}} is adjacent to all of u,v,wu,v,w so that u,v,w,xu,v,w,x form an induced claw, a contradiction. Hence (iii) follows.

    • (iv)

      Follows from (i),(ii) and (iii).

    Theorem 7.

    A cograph GG is a C-I cograph if and only if the cotree of GG belongs to the family 𝒯𝒞\mathcal{T_{C}}.

    Proof.

    It is clear that when GG is a complete graph if and only if the cotree is the tree with every vertex of GG as a child of the root node and which is a part of 𝒯𝒞\mathcal{T_{C}}.

    Let GG be a C-I cograph which is not a complete graph. Then by Lemma  12, cotree of GG is of the form 𝒯𝒞\mathcal{T_{C}}

    Conversely, we need to prove that if 𝒯𝒞\mathcal{T_{C}} is the cotree of a cograph GG then GG is a C-I graph. Consider the set of leaves of the cotree 𝒯𝒞\mathcal{T_{C}} ( Refer Figure 7 ). It follows by the definition of cotree of a cograph GG that the sets CijC_{i}^{j}’s are cliques of GG, for i=1,3i=1,3 and j=1,2,,kj=1,2,\ldots,k and i=1kC2i={w1,w2,,wm}\bigcup\limits_{i=1}^{k}C_{2}^{i}=\{w_{1},w_{2},\ldots,w_{m}\} are universal vertices. Now C1jC_{1}^{j} is adjacent to every vertex in GG except C3jC_{3}^{j} and C3jC_{3}^{j} is adjacent to every vertex in GG except C1jC_{1}^{j} for j=1,2,,kj=1,2,\ldots,k. Then by Remark 4, GG is a C-I cograph.

    In [14], Corneil et al. presented a linear-time algorithm for recognizing cographs and constructing their cotree representation. Using that algorithm, we get the cotree.

    Theorem 8.

    [14] The family of cographs possesses a linear-time recognition algorithm by the construction of the cotrees in linear-time.

    Input : A connected graph GG with |V(G)|=n|V(G)|=n
    Output : GG is a C-I cograph or not. If G is a C-I cograph then find a poset PP such that GPGG_{P}\cong G.
    • Step 0:

      Using the recognition algorithm in Theorem 8 determine the cotree if GG is a cograph and go to Step 1. Otherwise, stop and return GG is not cograph

    • Step 1:

      Perform BFS from the root node 1 of the cotree.

    • 1Step 2:

      If BFS completes in one step by reaching all the leaf nodes (if all the adjacent nodes of the root node are

    2 leaf nodes), then the graph is a complete graph and it is C-I cograph; stop, and we are done.
    Otherwise, go to Step 3.
  • Step 3(i):

    After Step 2, only 0-nodes are obtained. Then GG is not a C-I cograph and Stop. 3Step 3(ii): After Step 2, both 0-nodes and leaf nodes are obtained. Check whether the number of zero nodes is

  • 4 greater than the number of leaf nodes. If yes, then GG is not a C-I cograph and stop.
    Otherwise goto Step 4
  • Step 4:

    Continue the searching at level 2. If 0-nodes has more than two children as 11-nodes then GG is not a C-I cograph and stop. Otherwise, go to Step 5. 5Step 5: Continue searching at level 3. In level 3, if any 11-node has 0-node as a child, then GG is not a C-I cograph

  • and stop. If all the children of the 11-nodes are the leaf node then we are done. The resulting graph is a C-I cograph.
  • 6Step 6:

    Label the leaf nodes of each 0-node  branch in level 2 as C1iC_{1}^{i} and C3iC_{3}^{i}. Partition the leaf nodes from

  • the rooted node 1 into the number of 0-nodes. That is, the leaf nodes are partitioned into rr sets, C2iC_{2}^{i} for i=1,2,,ri=1,2,\ldots,r, where rr denotes the number of 0-nodes at level 2.
  • 7Step 7:

    Construct completely ranked posets PiP_{i} with rank 0 elements as C1iC_{1}^{i}, rank 1 elements as C2iC_{2}^{i}, and rank 2 elements as C3iC_{3}^{i} for i=1,2,3,,ri=1,2,3,\ldots,r.

  • Return P=P1+P2++PrP=P_{1}+P_{2}+\cdots+P_{r} as one of the poset of the C-I cograph GG.
    Algorithm 2 Algorithm for recognizing C-I cograph

    Proof of correctness: The correctness of the Algorithm 2 up to step 5 follows from the structure of cotree stated in Lemma 12 and Theorem 7, and the related facts mentioned above. If after step 5 results in a C-I cograph, then the poset P=P1+P2++PrP=P_{1}+P_{2}+\cdots+P_{r} is certification and it follows from Remark 4, Lemma 10 and Theorem 7 that it is one of the completely ranked poset corresponding to the input graph GG.

    Now the size of the cotree of a C-I cograph can be estimated as follows. Let GG be a C-I cograph with nn vertices and G=G1G2GkG=G_{1}\vee G_{2}\vee\cdots G_{k}. Then from the structure of the cotree TT of GG, TT contains leaf nodes (which are the nn-vertices of GG), 0-nodes, and 1-nodes. Then TT contains kk 0-nodes, and each 0-node has exactly 2 children. Therefore TT has at most 1+k+2k+n1+k+2k+n vertices. The worst case for kk is when k=n3k=\frac{n}{3}. Therefore in the worst case, the total number of vertices in TT is 1+n3+2n3+31+\frac{n}{3}+\frac{2n}{3}+3, which is of the order of O(n)O(n).

    The time complexity of the recognition algorithm for cographs and finding its cotree by Theorem 8 is linear. Now the complexity of Algorithm 2 is linear in the size of the cotree, which is O(n)O(n) in the worst case since the complexity of the BFS can be performed on the cotree in linear-time.

    Acknowledgment:

    Arun Anil acknowledges the financial support from the University of Kerala, for providing University Post Doctoral Fellowship (Ac EVII 5576/2023/UOK dated 30/06/2023).

    References

    • [1] Anil, A., Changat, M.: Comparability Graphs Among Cover-Incomparability Graphs. In: Balachandran, N., Inkulu, R. (Eds.), CALDAM 2022, Algorithms and Discrete Applied Mathematics, LNCS 13179, pp. 48–61, Springer, Cham (2022). https://doi.org/10.1007/978-3-030-95018-7_5.
    • [2] Anil, A., Changat, M.: Composition and Product of Cover-Incomparability Graphs. The Art of Discrete and Applied Mathematics 6, #P2.09(2023). https://doi.org/10.26493/2590-9770.1515.af9
    • [3] Anil, A., Changat, M.: Ptolemaic and Chordal Cover-Incomparability Graphs. Order 39, 29–43(2022). https://doi.org/10.1007/s11083-021-09551-w
    • [4] Anil, A., Changat, M., Gologranc, T., Sukumaran, B.: Ptolemaic and planar cover-incomparability graphs. Order 38, 421–439(2021). https://doi.org/10.1007/s11083-021-09549-4
    • [5] Blair, J.R.S., Peyton, B.: An Introduction to Chordal Graphs and Clique Trees. In: George, A., Gilbert, J.R., Liu, J.W.H. (Eds.), Graph Theory and Sparse Matrix Computation. The IMA Volumes in Mathematics and its Applications, vol 56, pp. 1-29 Springer(1993).
    • [6] Bok, J., Maxová, J.: Characterizing Subclasses of Cover-Incomparability Graphs by Forbidden Subposets. Order 36, 349–358(2019).
    • [7] Brešar, B., Changat, M., Gologranc, T., Mathew, J., Mathews, A.: Cover-incomparability graphs and chordal graphs. Discrete Appl. Math. 158, 1752 –1759(2010).
    • [8] Brešar, B., Changat, M., Klavžar, S., Kovše, M., Mathew, J., Mathews, A.: Cover-incomparability graphs of posets. Order 25, 335–347(2008).
    • [9] Brešar, B., Gologranc, T., Changat, M., Sukumaran, B.: Cographs Which are Cover-Incomparability Graphs of Posets. Order 32, 179–187(2015).
    • [10] Bretscher, A., Corneil, D.G., Habib, M., Paul, C.: A simple linear time LexBFS cograph recognition algorithm. SIAM J. Discrete Math. 22 1277–1296(2008).
    • [11] Brightwell, G., West, W.B.: Partially ordered sets. Chapter 11 in Handbook of Discrete and Combinatorial Mathematics (K.H. Rosen, ed.) CRC Press, Boca Raton, 717–752(2000).
    • [12] Buneman, P.: A characterization of rigid circuit graphs. Discrete Math. 9, 205–212(1974).
    • [13] Corneil, D.G., Lerchs, H., Stewart Burlingham, L.: Complement reducible graphs. Discrete Appl. Math. 3, 163–174(1981).
    • [14] Corneil, D.G., Perl, Y., Stewart, L.K.: A linear recognition algorithm for cographs. SIAM J. Computing 14, 926–934(1985).
    • [15] Cournier, A., Habib, M.: A new linear algorithm for modular decomposition. In: Tison,S. (Ed.), 19th19^{th} International Colloquium Trees in Algebra and Programming, CAAP’94, Vol. 787, LNCS, Springer, Berlin, 68–82(1994).
    • [16] Dahlhaus, E., Gustedt, J., McConnell, R.M.: Efficient and practical algorithms for sequential modular decomposition. J. Algorithms 41(2), 360–387(2001).
    • [17] Dirac, G., A.: On rigid circuit graphs. Abh. Math. Sem. Univ. HamDurg, 25, 71-76(1961).
    • [18] Fulkerson, D.R., Gross, O.A.: Incidence matrices and interval graphs. Pacific J. Math. 15, 835-855(1965).
    • [19] Gallai, T.: Transitiv orientierbare Graphen. Acta Math. Acad. Sci. Hung. 18, 25–66(1967).
    • [20] Gavril, F.: The intersection graphs of a path in a tree are exactly the chordal graphs. J. Comb. Theory 16, 47–56(1974).
    • [21] Habib, M., Paul, C.: A simple linear time algorithm for cograph recognition. Discrete Appl. Mathematics 145, 183–197(2005).
    • [22] Jung, H.A.: On a class of posets and the corresponding comparability graphs. Journal of Combin. Theory B 24, 125-133(1978)
    • [23] Maxová, J., Dubcová, M., Pavlíková, P., Turzík, D.: Which k-trees are cover-incomparability graphs. Discrete Appl.Math. 167, 222–227(2014).
    • [24] Maxová, J., Pavlíková, P., Turzík, D.: On the complexity of cover-incomparability graphs of posets. Order 26(3), 229–236(2009).
    • [25] Maxová, J., Turzík,  D.: Which distance-hereditary graphs are cover-incomparability graphs?. Discrete Appl. Math. 161, 2095–2100(2013).
    • [26] McConnell, R.M., Spinrad, J.: Linear-time modular decomposition and efficient transitive orientation of comparability graphs. In Proceedings of the Fifth Annual ACM-SIAM Symposium on Discrete Algorithms Arlington, VA, ACM, NewYork, 536–545(1994).
    • [27] Rose, D.J., Tarjan, R.E., Lueker, G.S.: Algorithmic Aspects of Vertex Elimination on Graphs. SIAM Journal on Computing 5(2), 266-283 (1976).
    • [28] Seinsche, S.: On the property of the class of n-colorable graphs. J. Comb. Theory (B), 191–193(1974).
    • [29] Shibata, Y.: On the tree representation of chordal graphs. Journal of Graph Theory 12, 421–428(1988).
    • [30] Tarjan, R.E., Yannakakis, M.: Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs. SIAM J. Comput. 13, 566–579(1984).