The Computational Complexity of Graph Contractions I: Polynomially Solvable and NP-Complete Cases*

Similar documents
arxiv: v1 [cs.ds] 2 Oct 2018

On Graph Contractions and Induced Minors

Discrete Applied Mathematics

MINIMALLY NON-PFAFFIAN GRAPHS

On disconnected cuts and separators

The minimum G c cut problem

An approximate version of Hadwiger s conjecture for claw-free graphs

Sergey Norin Department of Mathematics and Statistics McGill University Montreal, Quebec H3A 2K6, Canada. and

Even Cycles in Hypergraphs.

Berge Trigraphs. Maria Chudnovsky 1 Princeton University, Princeton NJ March 15, 2004; revised December 2, Research Fellow.

HAMILTONIAN PROPERTIES OF TRIANGULAR GRID GRAPHS. 1. Introduction

Parity Versions of 2-Connectedness

Hamiltonian problem on claw-free and almost distance-hereditary graphs

Durham Research Online

Locating-Total Dominating Sets in Twin-Free Graphs: a Conjecture

4 CONNECTED PROJECTIVE-PLANAR GRAPHS ARE HAMILTONIAN. Robin Thomas* Xingxing Yu**

Paths and cycles in extended and decomposable digraphs

Claw-free Graphs. III. Sparse decomposition

Extremal Graphs Having No Stable Cutsets

MINIMALLY NON-PFAFFIAN GRAPHS

Cographs; chordal graphs and tree decompositions

ON DOMINATING THE CARTESIAN PRODUCT OF A GRAPH AND K 2. Bert L. Hartnell

Spanning Paths in Infinite Planar Graphs

The Strong Largeur d Arborescence

Coloring square-free Berge graphs

THE COMPLEXITY OF DISSOCIATION SET PROBLEMS IN GRAPHS. 1. Introduction

Maximising the number of induced cycles in a graph

GRAPH MINORS AND HADWIGER S CONJECTURE

arxiv: v1 [cs.dm] 26 Apr 2010

arxiv: v2 [math.co] 7 Jan 2016

Four-coloring P 6 -free graphs. I. Extending an excellent precoloring

The edge-density for K 2,t minors

Enumerating minimal connected dominating sets in graphs of bounded chordality,

Discrete Mathematics

Out-colourings of Digraphs

Partial cubes: structures, characterizations, and constructions

Automorphism groups of wreath product digraphs

A Min-Max Relation on Packing Feedback Vertex Sets

Observation 4.1 G has a proper separation of order 0 if and only if G is disconnected.

On the mean connected induced subgraph order of cographs

4-coloring P 6 -free graphs with no induced 5-cycles

K 4 -free graphs with no odd holes

Parameterized Domination in Circle Graphs

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS

Generalized Pigeonhole Properties of Graphs and Oriented Graphs

Analogies and discrepancies between the vertex cover number and the weakly connected domination number of a graph

Characterizing binary matroids with no P 9 -minor

Planar Ramsey Numbers for Small Graphs

GRAPHS WITH MAXIMAL INDUCED MATCHINGS OF THE SAME SIZE. 1. Introduction

Perfect divisibility and 2-divisibility

ON THE NUMBER OF COMPONENTS OF A GRAPH

Decompositions of graphs into cycles with chords

Graph Classes and Ramsey Numbers

Triangle-free graphs that do not contain an induced subdivision of K 4 are 3-colorable

Rao s degree sequence conjecture

A characterization of diameter-2-critical graphs with no antihole of length four

Observation 4.1 G has a proper separation of order 0 if and only if G is disconnected.

Graph Theory. Thomas Bloom. February 6, 2015

The Price of Connectivity for Feedback Vertex Set

Some Complexity Problems on Single Input Double Output Controllers

Independent Transversals in r-partite Graphs

Induced subgraphs of prescribed size

Finite Induced Graph Ramsey Theory: On Partitions of Subgraphs

1.3 Vertex Degrees. Vertex Degree for Undirected Graphs: Let G be an undirected. Vertex Degree for Digraphs: Let D be a digraph and y V (D).

Obstructions for three-coloring graphs without induced paths on six vertices

Probe interval graphs and probe unit interval graphs on superclasses of cographs

STRUCTURE OF THE SET OF ALL MINIMAL TOTAL DOMINATING FUNCTIONS OF SOME CLASSES OF GRAPHS

GIRTH SIX CUBIC GRAPHS HAVE PETERSEN MINORS

On Dominator Colorings in Graphs

Partial characterizations of clique-perfect graphs II: diamond-free and Helly circular-arc graphs

Small Cycle Cover of 2-Connected Cubic Graphs

Wheel-free planar graphs

SPECIAL T K 5 IN GRAPHS CONTAINING K 4

Strongly chordal and chordal bipartite graphs are sandwich monotone

Packing and Covering Dense Graphs

Partial characterizations of clique-perfect graphs I: subclasses of claw-free graphs

Multi-coloring and Mycielski s construction

arxiv: v1 [math.co] 1 Oct 2013

Probabilistic Proofs of Existence of Rare Events. Noga Alon

A Separator Theorem for Graphs with an Excluded Minor and its Applications

Antoni Marczyk A NOTE ON ARBITRARILY VERTEX DECOMPOSABLE GRAPHS

On improving matchings in trees, via bounded-length augmentations 1

The Turán number of sparse spanning graphs

Disjoint paths in unions of tournaments

Deciding the Bell number for hereditary graph properties. A. Atminas, A. Collins, J. Foniok and V. Lozin

arxiv: v1 [math.co] 28 Oct 2016

Exact Algorithms for Dominating Induced Matching Based on Graph Partition

Disjoint paths in tournaments

Compatible Circuit Decompositions of 4-Regular Graphs

UNAVOIDABLE INDUCED SUBGRAPHS IN LARGE GRAPHS WITH NO HOMOGENEOUS SETS

CIRCULAR CHROMATIC NUMBER AND GRAPH MINORS. Xuding Zhu 1. INTRODUCTION

Cycles in 4-Connected Planar Graphs

Even Pairs and Prism Corners in Square-Free Berge Graphs

arxiv: v1 [math.co] 13 May 2016

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems

Roman domination perfect graphs

Graph coloring, perfect graphs

ARTICLE IN PRESS Theoretical Computer Science ( )

Tree-width and planar minors

Coloring Vertices and Edges of a Path by Nonempty Subsets of a Set

Transcription:

The Computational Complexity of Graph Contractions I: Polynomially Solvable and NP-Complete Cases* Asaf Levin Department of Statistics, The Hebrew University, Jerusalem 91905, Israel Daniel Paulusma Department of Computer Science, Durham University, Science Laboratories, South Road, Durham DH1 3LE, England Gerhard J. Woeginger Department of Mathematics and Computer Science, Eindhoven University of Technology, P.O. Box 513, 5600 MB Eindhoven, The Netherlands For a fixed pattern graph H, let H-Contractibility denote the problem of deciding whether a given input graph is contractible to H. This paper is part I of our study on the computational complexity of the H-Contractibility problem. We continue a line of research that was started in 1987 by Brouwer and Veldman, and we determine the computational complexity of the H-Contractibility problem for certain classes of pattern graphs. In particular, we pinpoint the complexity for all graphs H with five vertices except for two graphs, whose polynomial time algorithms are presented in part II. Interestingly, in all connected cases that are known to be polynomially solvable, the pattern graph H has a dominating vertex, whereas in all cases that are known to be NP-complete, the pattern graph H does not have a dominating vertex. 2007 Wiley Periodicals, Inc. NETWORKS, Vol. 51(3), 178 189 2008 Keywords: graph; edge contraction; dominating vertex; computational complexity 1. INTRODUCTION This paper studies the computational complexity of the contractibility problem: how hard is it to change a given graph G into a fixed pattern graph H by performing a sequence of edge contractions? Our motivation comes from Hamiltonian graph theory [3,8], and graph minor theory [11]. We will give Received March 2006; accepted May 2007 Correspondence to: D. Paulusma; e-mail: daniel.paulusma@durham.ac.uk *An earlier version of this paper appeared in the Proceedings of the 29th International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2003). DOI 10.1002/net.20214 Published online 14 December 2007 in Wiley InterScience (www. interscience.wiley.com). 2007 Wiley Periodicals, Inc. more details later (after explaining some basic terminology). Other applications include surface simplification in computer graphics [1,4] and cluster analysis of large data sets [5,7,9]. In the first application, graphic objects are represented using (triangulated) graphs and these graphs need to be simplified. One of the techniques to do this is by using edge contraction. In the second application it is also common to coarsen graphs by using a series of edge contractions. All graphs in this paper are undirected, finite, and simple, i.e., without loops and multiple edges. If no confusion is possible, we write V = V G and E = E G for a graph G = (V G, E G ). A graph G is a subgraph of a graph H, denoted by G H, ifv G V H and E G E H. For a subset U V G we denote by G[U] the induced subgraph of G over U; hence G[U] =(U, {[x, y] E G x, y U}). A graph G is called connected if for every pair of distinct vertices u and v, there exists a path connecting u and v, i.e., a sequence of distinct vertices starting at u and ending at v where each pair of consecutive vertices forms an edge of G. Each maximal connected subgraph of a graph G is called a component of G. A graph P n denotes a path on n vertices. Two graphs G and G are called isomorphic, denoted by G G, if there exists a one-to-one mapping f of vertices of G onto vertices of G such that [u, v] E G if and only if [f (u), f (v)] E G. The mapping f is called an isomorphism between G and G. Let G = (V, E) be a graph, and let e =[u, v] E be an arbitrary edge with end-vertices u and v. We also say that end-vertices u and v are adjacent. The edge contraction of edge e in G removes the two end-vertices u and v from G, and replaces them by a new vertex that is adjacent to precisely those vertices to which u or v were adjacent. We denote the resulting graph by G\e. The edge deletion of edge e removes e from E. The edge subdivision of e removes e from E, and NETWORKS 2008 DOI 10.1002/net

introduces a new vertex that is adjacent to the two end-vertices u and v. A graph G is contractible to a graph H (graph G is H-contractible), if H can be obtained from G by a sequence of edge contractions. A graph G contains a graph H as a minor, ifh can be obtained from G by a sequence of edge contractions and edge deletions. A graph G is a subdivision of a graph H, ifg can be obtained from H by a sequence of edge subdivisions. Now let H = (V H, E H ) be some fixed connected graph with vertex set V H ={h 1,..., h k }. There are a number of natural and elementary algorithmic problems that check whether the structure of the graph H shows up as a pattern within the structure of some input graph G: H-Minor Containment Instance: A graph G = (V, E). Question: Does G contain H as a minor? H-Subdivision Subgraph Instance: A graph G = (V, E). Question: Does G contain a subgraph that is isomorphic to some subdivision of H? Anchored H-Subdivision Subgraph Instance: A graph G = (V, E) and k distinct vertices v 1,..., v k in V. Question: Does G contain a subgraph that is isomorphic to some subdivision of H, such that the isomorphism maps vertex v i of the subgraph of G into vertex h i of the subdivision of H, for 1 i k? H-Contractibility Instance: A graph G = (V, E). Question: Is G contractible to H? A celebrated result by Robertson and Seymour [11] states that the H-Minor Containment problem can be solved in polynomial time for every fixed pattern graph H. In fact, [11] fully settles the complexity of the first three problems on our problem list above: Proposition 1 ([11]). For every fixed pattern graph H, the three problems H-Minor Containment,H-Subdivision Subgraph, and Anchored H-Subdivision Subgraph are polynomially solvable. What about the fourth problem on our list, H- Contractibility? Perhaps surprisingly, there exist pattern graphs H for which this problem is NP-complete to decide! For instance, Brouwer and Veldman [3] have shown that P 4 - Contractibility is NP-complete. They make the following observation, which shows one only has to consider connected pattern graphs H. Observation 1.1 ([3]). The H-Contractibility problem is solvable in polynomial time if and and only if the H i - Contractibility problem is solvable in polynomial time for every component H i of H. A cycle C on n vertices is a graph whose vertices can be ordered into a sequence v 1, v 2,..., v n such that E C = {[v 1, v 2 ],..., [v n 1, v n ], [v n, v 1 ]}. A graph C n denotes a cycle on n vertices. A graph that does not contain a C 3 as a subgraph is said to be triangle-free. A graph G = (V, E) that has a vertex u such that every edge in E is adjacent to u is called a star. The main result of [3] is the following. Theorem 2 ([3]). Let H be a connected triangle-free graph. The H-Contractibility problem is polynomially solvable if H is a star, and it is NP-complete otherwise. A dominating vertex is a vertex that is adjacent to all other vertices. Note that an equivalent way of stating Theorem 2 would be the following: The H-Contractibility problem is NP-complete for every connected triangle-free graph H without a dominating vertex. The H-Contractibility problem is polynomially solvable for every connected triangle-free graph H with a dominating vertex. Moreover, in [3] the complexity of the H-Contractibility problem is determined for all small connected pattern graphs H: ForH = P 4 and H = C 4, the problem is NPcomplete (as implied by Theorem 2). For every other pattern graph H on at most four vertices, the problem is polynomially solvable. The exact separating line between polynomially solvable cases and NP-complete cases of this problem (under P = NP) is unknown and unclear. Brouwer and Veldman [3] write at the end of their paper that they expect the class of polynomially solvable cases to be very limited. Watanabe, Ae and Nakamura [12] consider remotely related edge contraction problems where the goal is to find the minimum number of edge contractions that transform a given input graph G into a pattern from a certain given pattern class. We follow the line of research that has been initiated by Brouwer and Veldman [3], and we classify the complexity of the H-Contractibility problem for certain classes of pattern graphs that, in particular, contain all small pattern graphs H with at most five vertices. Our results can be summarized as follows: Theorem 3. Let H be a connected graph on at most five vertices. If H has a dominating vertex, then the H-Contractibility problem is polynomially solvable. If H does not have a dominating vertex, then the H- Contractibility problem is NP-complete. It is difficult for us not to conjecture that the presence of a dominating vertex in the pattern graph H precisely separates the easy cases from the hard cases. However, we have no evidence for such a conjecture. There are 15 graphs H on five vertices that are not covered by Theorem 2. These are exactly the connected graphs on five vertices that do contain a triangle; see Figures 1 and 2 for pictures of all these graphs. It turned out that 10 of these 15 graphs yield polynomially solvable H-Contractibility problems, whereas the other 5 of them yield NP-complete problems. Many of our results are actually more general: They not only provide a specialized result for one particular five-vertex graph, but they also provide a result for an infinite NETWORKS 2008 DOI 10.1002/net 179

FIG. 1. The graphs H 1, H 2,..., H 10 (the polynomial cases). family of pattern graphs, from which the result on the fivevertex graph falls out as a special case. Our main contributions may be summarized as follows: 1. We analyze a class of cases where H contains one, two, or three dominating vertices, and where the components of the subgraph induced by the set of nondominating vertices are all paths (of possibly different length). In Section 3, we prove that three subfamilies of this class yield polynomially solvable H-Contractibility problems. These classes contain the eight graphs H 1,..., H 8 on five vertices as depicted in Figure 1. Our structural results show that in case some H- contraction exists, then there also exists an H-contraction of a fairly primitive form. In our algorithmic results, we then enumerate all possibilities for these primitive pieces, and settle the remaining problems by applying the results of Robertson and Seymour [11]. 2. For the two five-vertex graphs H 9 and H 10 shown in Figure 1, we were not able to find straightforward polynomial time algorithms. Our algorithms are based on lengthy (!) combinatorial investigations of potential contractions of an input graph to H 9 and H 10.Wedonot include the algorithms in this paper due to the length of their proofs but refer to [10] for their presentation. 3. In Section 4 we give a number of NP-completeness results. We present a generic NP-completeness construction. As a special case, this yields the NP-completeness of the H 15 -Contractibility problem for the graph H 15 in Figure 2. Moreover, we give four NP-completeness proofs for the four (five-vertex) graphs H 11, H 12, H 13, and H 14 in Figure 2. All four proofs are done by reduction from Hypergraph 2-Colorability and they are inspired by a similar NP-completeness argument of Brouwer and Veldman [3]. we denote its neighborhood, i.e., the set of adjacent vertices, by N(u) ={v [u, v] E}. The degree of a vertex u is the number of edges incident with it, or equivalently the size of its neighborhood. The neighborhood N(U) of a subset U V is defined as u U N(u)\U, and we call the vertices in N(U) neighbors of U. Ifv N(U) for some subset U V we say that v is adjacent to U. Two subsets U, U V with U U = are adjacent, if there exist vertices u U and u U with [u, u ] E. A graph G = (V, E) is called k-connected if G[V\U] is connected for every set U V of at most k 1 vertices. A k- vertex cut is a subset S V of size k such that G[V\S] is not connected. The vertex in a 1-vertex cut of a graph G is called a cutvertex. Each maximal 2-connected subgraph of a graph G is called a block of G. Note that by their maximality any two blocks of G have at most one vertex (which is a cutvertex of G) in common. Consider a graph G = (V G, E G ) that is contractible to a graph H = (V H, E H ). An equivalent (and for our purposes more convenient) way of stating this fact is that for every vertex h in V H, there is a corresponding connected subset W(h) V of vertices in G (so the induced subgraph of G over W(h) is connected); we call a set W(h) an H-witness set of G for vertex h and call the set W ={W(h) h V H } an H-witness structure of G; for every edge e =[h 1, h 2 ] E H, there is at least one edge in G that connects the vertex set W(h 1 ) to the vertex set W(h 2 ); for every two vertices h 1, h 2 in H that are not connected by an edge in E H, there are no edges between W(h 1 ) and W(h 2 ). If for every h V H, we contract the vertices in W(h) to a single vertex, then we end up with the graph H. See Figure 3 for an example. Note that in general, witness sets W(h) are not uniquely defined (since there may be many different sequences of contractions that lead from G to H). In our polynomial time algorithms, we will explore the structure of the witness sets, and often prove that there exists at least one witness structure with certain strong and nice properties. The following algorithmic problem plays a crucial role in our study of the H-Contractibility problem. 2. PRELIMINARIES For graph terminology not defined below (or in the introduction) we refer to [2]. For a vertex u in a graph G = (V, E) FIG. 2. The graphs H 11, H 12,..., H 15 (the NP-complete cases). FIG. 3. A graph H and an H-contractible graph G. 180 NETWORKS 2008 DOI 10.1002/net

Disjoint Connected Subgraphs(k) Instance: A graph G = (V, E) and nonempty subsets Z 1,..., Z t V such that t i=1 Z i k. Question: Does G contain mutually disjoint connected subgraphs G i G such that Z i V Gi for 1 i t? Robertson and Seymour [11] proved the following. Theorem 4 ([11]). The Disjoint Connected Subgraphs(k) problem is solvable in polynomial time for all k 1. A complete graph is a graph with an edge between every pair of vertices. The complete graph on p vertices is denoted by K p. As an immediate consequence of Theorem 4 we can solve the following problem in polynomial time as well. K p -Fixed Contractibility Instance: A graph G = (V, E) and t p subsets Z 1,..., Z t V such that t i=1 Z i p. Question: Can G be contracted to K p with K p -witness sets U 1,..., U p such that Z i U i for 1 i t? Corollary 5. The K p -Fixed Contractibility problem is solvable in polynomial time. Proof. Suppose we are given a graph G = (V, E) and t p subsets Z 1,..., Z t V such that t i=1 Z i p. Define Z i := for i = t + 1,..., p. Then we act as follows. First we choose p(p 1)/2 different edges. Denote these edges by [u j i, ui j ] for all 1 i < j p, where we allow u j h = uj i for some indices h, i, j. Fori = 1,..., p we define Z i = Z i {ui 1,..., ui 1 i, ui i+1,..., u p i }. This way we obtain an instance for Disjoint Connected Subgraphs(k), where k t i=1 Z i +p(p 1) p + p 2 p = p 2, such that Theorem 4 can be applied. We can check all possible choices, since their total number is bounded by V p2. 3. SOME SIMPLE POLYNOMIALLY SOLVABLE CASES Since K p -Minor Containment and K p -Contractibility are the same problem, we immediately derive the following result from Proposition 1. Proposition 6 ([11]). The K p -Contractibility problem is solvable in polynomial time for all p 1. The above result includes H 8 = K 5. We can also obtain Proposition 6 by applying Corollary 5 with Z i = for i = 1,..., p. Also for the graphs H 1,..., H 7 more general polynomial time results will be given. For two graphs G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) with V 1 V 2 =, we denote their join by G 1 G 2 = (V 1 V 2, E 1 E 2 V 1 V 2 ), and their disjoint union by G 1 G 2 = (V 1 V 2, E 1 E 2 ). For the disjoint union G G G of k copies of the graph G, we write shortly kg; for k = 0 this yields the empty graph (, ). For non-negative integers a 1, a 2,..., a k,weleth1 (a 1, a 2,..., a k ) be the graph K 1 (a 1 K 1 a 2 P 2 a k P k ), H2 (a 1, a 2 ) be the graph K 2 (a 1 K 1 a 2 K 2 ), and H3 (a 1) be the graph K 3 a 1 K 1. Brouwer and Veldman [3] prove the H-Contractibility problem is solvable in polynomial time for every H = H1 (a 1) and for every H = H1 (a 1, a 2 ), where a 1, a 2 are two nonnegative integers. The main result in this section is that the H- Contractibility problem is solvable in polynomial time for H = H1 (a 1, a 2,..., a k ), H = H2 (a 1, a 2 ), and H = H3 (a 1) for all fixed sets of non-negative integers a 1, a 2,..., a k.we note that H 1 = H1 (2, 1), H 2 = H1 (0, 2), H 3 = H1 (1, 0, 1), H 4 = H1 (0, 0, 0, 1), H 5 = H2 (3, 0), H 6 = H2 (1, 1), and H 7 = H3 (2). We prove the above polynomial time results for each class as follows. First we derive a lemma stating a number of properties of a certain H-witness structure of a H-contractible graph, when H belongs to one of the above classes. Then we will proceed as we did in the proof of Corollary 5: we say that we guess some information on a witness set. Such a guessing step can be implemented by an exhaustive (but still bounded by a polynomial in V H ) enumeration of all possibilities (for the guess) and for each possibility we apply the algorithm. If there is at least one possibility of the guess that leads to the contraction of a graph G into the desired graph H (possibly after applying Corollary 5), then we conclude that G is H-contractible. Lemma 3.1. Let y be a vertex of a connected graph H such that H[V H \{y}] contains a component that is a path R = x 1...x k on k 1 vertices, and x i is adjacent to y in H for i = 1,..., k. Let G be an H-contractible graph with witness structure W. Then G owns a witness structure W that has the following properties: (i) W (x i ) contains exactly one vertex u i that is adjacent to W (y) for i = 1,..., k; (ii) u i is the only vertex of W (x i ) that is adjacent to W (x i+1 ) for i = 1,..., k 1; (iii) W(y) W (y); (iv) W (z) = W(z) for all z V H \{x 1,..., x k, y}; (v) N(W (z)) (W (y)\w(y)) = for all z V H \{x 1,..., x k, y}. Proof. Let G be an H-contractible graph with witness structure W. We define W (z) := W(z) for all z V H \{x 1,..., x k, y}. We use induction to prove the claim. First consider W(x 1 ). Let u W(x 1 ) be adjacent to W(y). We apply the following procedure repeatedly. Case 1. The subgraph G[W(x 1 )\{u}] contains a component L whose vertex set V L is adjacent to W(x 2 ). Then we add all vertices in W(x 1 )\V L to W(y). Case 2. Vertex u is the only vertex of W(x 1 ) adjacent to W(x 2 ), and G[W(x 1 )\{u}] contains a component L whose vertex set V L is adjacent to W(y). Then we add all vertices in V L to W(y). NETWORKS 2008 DOI 10.1002/net 181

It is easy to check that applying any of the above two cases results in a new H-witness structure of G that leaves all witness sets W (z) for z / {x 1, y} unchanged, and that does not introduce any new edges between W(y) and W (z) for z / {x 1, x 2, y}. Each case operation reduces the size of W(x 1 ). Hence, after at most W(x 1 ) 1 single operations we find the desired set W (x 1 ) with desired vertex u 1. Now suppose we have found the desired witness sets W (x 1 ),..., W (x i 1 ) with corresponding vertices u 1,..., u i 1 for some 1 i k 1. Let W (x i ) and W (y) denote the witness sets for x i and y, respectively, that we have obtained so far. Let u be a vertex in G[W (x i )] that is adjacent to W (y). We apply the following procedure repeatedly. Case 1. G[W (x i )\{u}] contains a component L whose vertex set V L is adjacent to W(x i+1 ).IfV L is adjacent to W (x i 1 ) as well, then we add all vertices in W (x i )\V L to W (y). Otherwise, we add V L to W(x i+1 ). Case 2. Vertex u is the only vertex in W (x i ) that is adjacent to W(x i+1 ), and G[W (x i )\{u}] contains a component L whose vertex set V L is adjacent to W (y) but not to W (x i 1 ). Then we add V L to W (y). Case 3. Vertex u is the only vertex in W (x i ) that is adjacent to W(x i+1 ), subgraph G[W (x i )\{u}] contains two different components L, L whose vertex sets V L and V L are adjacent to W (x i 1 ), while V L is adjacent to W (y) as well. Then we add V L to W (y). Case 4. Vertex u is the only vertex in W (x i ) that is adjacent to W(x i+1 ), subgraph G[W (x i )\{u}] contains exactly one component L that has a vertex set V L adjacent to W (x i 1 ), and vertex set V L is adjacent to W (y) as well. If vertex u is not adjacent to W (x i 1 ), then we add all vertices in W (x i )\V L to W(x i+1 ). Otherwise we add all vertices in V L to W (y). It is easy to check that applying any of the above four cases results in a new H-witness structure of G that leaves all witness sets W (z) for z / {x i, x i+1, y} unchanged, that does not introduce any new edges between W (y) and W (z) for z / {x i 1, x i, x i+1, y}, and that does not introduce any new edges between W (x i 1 )\{u i 1 } and W (y). Each case operation reduces the size of W (x i ). Hence, after at most W (x i ) 1 single operations we find the desired set W (x i ) with desired vertex u i. Finally, let W (x k ) denote the witness set for x k that we have obtained from W(x k ) so far. Let u W (x k ) be adjacent to W (y). We apply the following procedure repeatedly. Case 1. The subgraph G[W (x k )\{u}] contains a component L whose vertex set V L is adjacent to W (x k 1 ). Then we add all vertices in W (x k )\V L to W (y). Case 2. Vertex u is the only vertex of W (x k ) adjacent to W (x k 1 ), and G[W (x k )\{u}] contains a component L whose vertex set V L is adjacent to W (y). Then we add all vertices in V L to W (y). Again, it is easy to check that applying any of the above two cases results in a new H-witness structure of G that leaves all witness sets W (z) for z / {x k, y} unchanged, that does not introduce any new edges between W (y) and W (z) for z / {x k 1, x k, y} and that does not introduce any new edges between W (x k 1 )\{u k 1 } and W (y). Each case operation reduces the size of W (x k ). Hence, after at most W (x k ) 1 single operations we find the desired set W (x k ) with desired vertex u k. We denote the resulting witness set for y by W (y). This way we have obtained the H-witness structure W of G. See Figure 4 for an example. We can now prove the following result. Theorem 7. The H 1 (a 1, a 2,..., a k )-Contractibility problem is solvable in polynomial time for every fixed set of non-negative integers a 1, a 2,..., a k for all k 1. FIG. 4. A graph H and an H-contractible graph G with witness structure W. 182 NETWORKS 2008 DOI 10.1002/net

Proof. Let G = (V, E) be a connected graph, and let y be the dominating vertex of H = H (a 1, a 2,..., a k ). Denote the set of components in H[V H \{y}] by P. Recall that all components in P are paths. If G is H-contractible then, by frequently applying Lemma 3.1, we find that graph G owns a witness structure W that satisfies the following two properties for each P = x1 P...xP V P P. i. witness set W(xi P) contains exactly one vertex up i that is adjacent to W(y) for i = 1,..., V P ; ii. vertex ui P is the only vertex of W(xi P ) that is adjacent to ) for i = 1,..., k 1. W(x p i+1 So we only have to check whether we can find a witness structure of G satisfying (i) and (ii) for all P P. Wedo this as follows. For each component P P we guess a set S P of V P vertices s1 P,..., sp V P in G, such that the guess set S = P P SP, i.e., the set of all guessed vertices, has cardinality S = P P V P. We say that our guess set S is appropriate if G has a witness structure W that satisfies property (i) and (ii) for all P P by si P = ui P for 1 i V P. If it turns out that S is not appropriate, we have to determine another guess set. To check whether S is appropriate we do as follows. We do not allow any two vertices si P and s Q j to be adjacent if P, Q are two different paths in P. We must also have guessed the vertices of S in such a way that for all P P, the components of the subgraph G[S P ] are paths. For each vertex s i S we guess a vertex t i in N(s i )\S. We denote the set of all these guessed neighbors by T. Two vertices in S are allowed to have the same guessed neighbor t i in G[V\S] (so T S holds). If N(s i )\S = for some s i S, then guess set S is not appropriate. We define D to be the component in G[V\S] that contains vertex t 1. We check whether T V D holds. In that case we consider V D as a candidate witness set for W(y). If not, then guess set S is not appropriate. Suppose W(y) = V D can be considered as a candidate witness set. We then consider the graph G[V\V D ]. We denote the set of components in G[V\V D ] by K. If there exists a component K K that contains two vertices si P and s Q j for P = Q, then guess set S is not appropriate. If the vertices of some set S P are distributed over more than one component in K, then S is not appropriate. Suppose every component in K contains all vertices of exactly one set S P (so K = P ). We check each component K K as follows. Let K contain the set S P corresponding to P P. Recall that, due to our choice of S, the components of the subgraph G[S P ] are all paths. For each s S P and each v V K \S P, we check whether there exists a path Q(v, s) from v to s in G[(V K \S P ) {s}]. If we find at least three such paths Q(v, sh P), Q(v, sp i ), Q(v, sp j ) for some v, then S is not appropriate. This way we can check in polynomial time whether S is appropriate. Since the total number of different guess sets is bounded by a polynomial in V H the theorem has been proven. Lemma 3.2. Let y 1, y 2 be two adjacent vertices of a connected graph H such that H[V H \{y 1, y 2 }] contains a component that is a path R = x 1...x k on 1 k 2 vertices such that every vertex on R is adjacent to both y 1 and y 2. Let G be an H-contractible graph with witness structure W. Then G owns a witness structure W that has the following properties: (i) W (x i ) contains exactly one vertex u i that is adjacent to W (y 1 ) W (y 2 ) for i = 1,..., k; (ii) If k = 2, then vertex u 1 is the only vertex of W (x 1 ) that is adjacent to W (x 2 ); (iii) W(y i ) W (y i ) for i = 1, 2; (iv) W (z) = W(z) for all z V H \(V R {y 1, y 2 }); (v) N(W (z)) (W (y i )\W(y i )) = for all z V H \(V R {y 1, y 2 }) and i = 1, 2. Proof. We first suppose k = 2. Let G be an H- contractible graph with witness structure W. We define W (z) = W(z) for all z V H \{x 1, x 2, y 1, y 2 }. We first consider W(x 1 ). Let u W(x 1 ) be adjacent to W(y 1 ). We apply the following procedure repeatedly. Case 1. G[W(x 1 )\{u}] contains a component L whose vertex set V L is adjacent to W(x 2 ).IfV L is adjacent to W(y 2 ) as well, then we add all vertices in W(x 1 )\V L to W(y 1 ). Otherwise we add all vertices in V L to W(x 2 ). Case 2. Vertex u is the only vertex adjacent to W(x 2 ), and G[W(x 1 )\{u}] contains a component L whose vertex set V L is adjacent to W(y 1 ) W(y 2 ). We add all vertices in V L to W(y 2 ) if V L is adjacent to W(y 2 ) and otherwise we add V L to W(y 1 ). Just as in the proof of Lemma 3.1, we find the desired set W (x 1 ) with desired vertex u 1 after at most W(x 1 ) 1 operations. Let W (x 2 ), W (y 1 ) and W (y 2 ) denote the witness sets for x 2, y 1, and y 2, respectively, that we have obtained so far. Let u be a vertex in W (x 2 ) that is adjacent to W (y 1 ). We apply the following procedure repeatedly. Case 1. The subgraph G[W (x 2 )\{u}] contains a component L whose vertex set V L is adjacent to W (y 2 ).IfV L is adjacent to W (x 1 ) as well, then we add all vertices in W (x 2 )\V L to W (y 1 ). Otherwise we add all vertices in V L to W (y 2 ). Case 2. Vertex u is the only vertex of W (x 2 ) adjacent to W (y 2 ), and G[W (x 2 )\{u}] contains a component L whose vertex set V L is adjacent to W (y 1 ).IfV L is adjacent to W (x 1 ) as well, then we add all vertices in W (x 2 )\V L to W (y 2 ). Otherwise we add all vertices in V L to W (y 1 ). By the same arguments as in the proof of Lemma 3.1, we find the desired set W (x 2 ) with desired vertex u 2 after at most W (x 2 ) 1 operations. We denote the resulting witness sets for y 1 and y 2 by W (y 1 ) and W (y 2 ), respectively. This way we have obtained the H-witness structure W of G. NETWORKS 2008 DOI 10.1002/net 183

The case k = 1 can be proven by using similar (but simpler) arguments. We are now ready to prove the following theorem. Theorem 8. The H2 (a 1, a 2 )-Contractibility problem is solvable in polynomial time for every fixed pair of nonnegative integers a 1, a 2. Proof. Let G = (V, E) be a connected graph. Let y 1, y 2 be the two dominating vertices of H = H 2 (a 1, a 2 ). Denote the set of components in H[V H \{y 1, y 2 }] by P. Recall that every component in P is either a vertex or an edge. If G is H-contractible then, by frequently applying Lemma 3.2, we find that graph G owns a witness structure W that satisfies the following two properties for each P = x P 1...xP V P P. (i) witness set W(xi P) contains exactly one vertex up i that is adjacent to W(y 1 ) W(y 2 ) for i = 1,..., V P ; (ii) if V P =2, then vertex u1 P is the only vertex of W(xP 1 ) that is adjacent to W(x2 P). So we only have to check whether we can find a witness structure of G satisfying (i) and (ii) for all P P. Wedo this as follows. For each component P P we guess a set S P of V P 2vertices s1 P,..., sp V P in G, such that the guess set S = P P SP, i.e., the set of all guessed vertices, has cardinality S = P P V P. We say that guess set S is appropriate if G has a witness structure W that satisfies property (i) and (ii) for all P P by si P = ui P for 1 i V P. If it turns out that S is not appropriate, we have to determine another guess set. To check whether S is appropriate we do as follows. We do not allow any two vertices si P and s Q j to be adjacent if P, Q are two different paths in P. For each vertex s i S we guess two different vertices ti 1, t2 i in N(s i )\S. We denote the set of all guessed neighbors ti 1 by T 1 and the set of all guessed neighbors ti 2 by T 2. Two vertices in S are allowed to have some common guessed neighbor in T 1 or in T 2.If N(s)\S 1for some s S, then guess set S is not appropriate. We define D to be the component in G[V\S] that contains vertex t1 1. We check whether T 1 T 2 D holds. If not, then guess set S is not appropriate. Otherwise, due to Corollary 5, we can check in polynomial time whether D is K 2 -contractible such that T 1 and T 2 are contained in separate witness sets. If D is not K 2 -contractible in this way, then we need to guess different sets T 1 and T 2 and check again. Since the total number of different pairs T 1, T 2 is bounded by a polynomial in V H, we find in polynomial time either that candidate witness sets W(y 1 ) with T 1 W(y 1 ) and W(y 2 ) with T 2 W(y 2 ) exist, or else that S is not appropriate. Suppose candidate witness sets W(y 1 ) and W(y 2 ) as above exist. We now consider the graph G[V\V D ], and use the same procedure as in the proof of Theorem 7 to finish the verification whether S is appropriate or not. This way we can check in polynomial time whether S is appropriate. Since the total number of different guess sets is bounded by a polynomial in V H the theorem has been proven. We finish this section by considering the H 3 (a 1)- Contractibility problem for every fixed integer a 1 1. Since every graph H 3 (a 1) is 2-connected, we can use the following lemma, which is easy to verify. Lemma 3.3 ([3]). A graph G is contractible to a 2- connected graph H if and only if G is connected and some block of G is contractible to H. Because of this lemma it is sufficient to verify each block of a graph G = (V, E). Note that we can find all blocks of a graph G in polynomial time. Corollary 9. Let a 1 be a non-negative integer. If the H 3 (a 1)-Contractibility problem is solvable in polynomial time for the class of 2-connected graphs, then the H 3 (a 1)-Contractibility problem is solvable in polynomial time. From now on we assume that our instance graphs are 2-connected. The following lemma simplifies the witness structure of an H 3 (a 1)-contractible graph. Note that, in this lemma, [y 1, y 3 ] does not have to be an edge in H. Lemma 3.4. Let y 1, y 2, y 3 be three vertices of a connected graph H with [y 1, y 2 ], [y 2, y 3 ] E H, and let x be a vertex in H with N(x) ={y 1, y 2, y 3 }.LetGbea2-connected graph that is H-contractible with witness structure W. Then G owns a witness structure W that has the following properties: (i) W (x) consists of exactly one vertex v; (ii) W(y i ) W (y i ) for i = 1, 2, 3; (iii) W (z) = W(z) for all z V H \{x, y 1, y 2, y 3 }; (iv) N(W (z)) (W (y i )\W(y i )) = for all z V H \{x, y 1, y 2, y 3 } and i = 1, 2, 3. Proof. Let G be a 2-connected, H-contractible graph with witness structure W. Let u W(x) be adjacent to W(y 2 ). We apply the following procedure repeatedly. Case 1. G[W(x)\{u}] contains a component L whose vertex set V L is adjacent to W(y 1 ).IfV L is adjacent to W(y 3 ) as well, then we add all vertices in W(x)\V L to W(y 2 ). Otherwise we add all vertices in V L to W(y 1 ). Case 2. Vertex u is the only vertex adjacent to W(y 1 ), and G[W(x)\{u}] contains a component L whose vertex set V L is adjacent to W(y 2 ) W(y 3 ). We add all vertices in V L to W(y 3 ) if V L is adjacent to W(y 3 ) and otherwise we add V L to W(y 2 ). By using the same arguments as in the proof of Lemma 3.1, we find a witness set W (x) with only one vertex u that is 184 NETWORKS 2008 DOI 10.1002/net

adjacent to W(y 1 ) W(y 2 ) W(y 3 ) after at most W(x) 1 operations. Since G is 2-connected, we conclude that W (x) ={u}. We are now ready to prove the following theorem. Theorem 10. The H3 (a 1)-Contractibility problem is solvable in polynomial time for every fixed non-negative integer a 1. Proof. Let G = (V, E) be a connected graph. Because of Corollary 9 we may assume that G is 2-connected. Let Y = {y 1, y 2, y 3 } be the three dominating vertices of H = H3 (a 1). Recall that all components in H[V H \Y] are vertices. If G is H-contractible then, by frequently applying Lemma 3.4, we find that graph G owns a witness structure W with W(x) =1 for all x V H \Y. So we only have to check whether we can find such an H-witness structure of G. We do this as follows. We guess a guess set S consisting of V H 3 vertices of G such that no two vertices in S are adjacent. We say that guess set S is appropriate if G has a witness structure W such that every witness set W(x) for x V H \Y consists of exactly one vertex of S. If it turns out that S is not appropriate, we have to determine another guess set. To check whether S is appropriate we do as follows. For each vertex s i S we guess three different vertices ti 1, t2 i, t3 i in N(s i )\S. Forj = 1, 2, 3, we denote the set of all guessed neighbors t j i by T j. Two vertices in S are allowed to have some common guessed neighbor in G[V\S]. If N(s)\S 2 for some s S, then guess set S is not appropriate. We define D to be the component in G[V\S] that contains vertex t1 1. We check whether T 1 T 2 T 3 D holds. If not, then guess set S is not appropriate. Otherwise, due to Corollary 5, we can check in polynomial time whether D has a K 3 -witness structure such that the sets T 1, T 2, T 3 are contained in three separate witness sets. If this is the case then we are done. Otherwise we need to guess different sets T 1, T 2, T 3 and check again. Since the total number of different triples T 1, T 2, T 3 is bounded by a polynomial in V H, we find in polynomial time whether S is appropriate or not. Since the total number of different guess sets S is bounded by a polynomial in V H, the theorem has been proven. 4. THE NP-COMPLETE CASES We prove that the H-Contractibility problem is NPcomplete if H = H i for i = 11,..., 15 (cf. Fig. 2). Since we can guess a partition W of the vertex set V of an instance graph G = (V, E) and check in polynomial time if W is an H-witness structure, every H-Contractibility problem is a member of NP. A hypergraph (Q, S) is a set Q ={q 1,..., q m } together with a set S ={S 1,..., S n } of subsets of Q. A2-coloring of a hypergraph (Q, S) is a partition of Q into Q 1 Q 2 such that Q 1 S j = and Q 2 S j = for 1 j n. In our proofs we use reduction from the following, well-known NP-complete problem (cf. [6]). FIG. 5. The P 4 -identifier I of an instance (Q, S). Hypergraph 2-Colorability Instance: A hypergraph (Q, S). Question: Does (Q, S) have a 2-coloring? With a hypergraph (Q, S) we associate its incidence graph I, which is a bipartite graph on Q S, where [q, S] forms an edge if and only if q S. Adding the set Q to S does not change the complexity of the problem. So we assume that the set Q itself is always a member of S. Now we extend I as follows. First we insert two new vertices t 1 and t 2 and a set S of n vertices S 1,..., S n, where S j is a copy of S j. Then we add the following edges [t 1, S] for all S S; [t 2, S ] for all S S ; [S, S ] for all S S and S S ; [q, S j ] if and only if [q, S j] E I ; [q i, q j ] for all q i = q j Q. For a reason that will be made clear in Proposition 11, we call the extended incidence graph obtained this way the P 4 - identifier of instance (Q, S) and denote it by I. See Figure 5 for an example. The length of a path is its number of edges. The distance d G (u, v) between two vertices u and v in a graph is the length of a shortest path between them. In our NPcompleteness reductions we frequently make use of the following observation. Observation 4.1. Let G be an H-contractible graph with H-witness structure W. Let r and s be vertices in G such that r W(x) and s W(y) for some x, y V H. Then d G (r, s) d H (x, y). Proof. A shortest path from r to s in G crosses at least as many witness sets as the number of vertices of a shortest path from x to y in H. The following result is due to [3]. It immediately implies that the P 4 -Contractibility problem is NP-complete. Proposition 11 ([3]). A hypergraph (Q, S) with Q S is 2- colorable if and only if its P 4 -identifier I is P 4 -contractible. In the following three theorems we prove that the H i -Contractibility problem is NP-complete for i = 11, 12, 13. NETWORKS 2008 DOI 10.1002/net 185

The H 11 -Contractibility problem is NP- Theorem 12. complete. Proof. We write H 11 = ({w 1, w 2, x, y, z}, {[w 1, w 2 ], [w 1, x], [w 2, x], [x, y], [y, z]}). We note that H[{w 1, x, y, z}] is isomorphic to P 4. Let (Q, S) be a hypergraph with S n = Q S. First we build the P 4 -identifier I of (Q, S). Then we construct a graph G by adding a new vertex r to I together with edges [r, t 1 ] and [r, S n ]. We claim that (Q, S) is 2-colorable if and only if G is H 11 -contractible. Suppose (Q, S) is 2-colorable. We define the following H 11 -witness sets of G: W(w 1 ) ={t 1 }, W(w 2 ) ={r}, W(x) = S Q 1, W(y) = S Q 2, and W(z) ={t 2 }. Suppose G is H 11 -contractible with witness structure W. Since S n and S n are adjacent to all vertices in Q, we find that in G only the distances between t 1 and t 2, and between r and t 2 are at least three. The distance between t 1 and r is equal to one. Then, by Observation 4.1 we deduce that W(z) = {t 2 } and that W(w 1 ) and W(w 2 ) both consist of exactly one of the vertices t 1 and r. Then G[V G \{r}] = I is P 4 -contractible. Hence, due to Proposition 11, the instance (Q, S) has a 2-coloring. The H 12 -Contractibility problem is NP- Theorem 13. complete. Proof. We write H 12 = ({x 1, x 2, y 1, y 2, z}, {[x 1, y 1 ], [x 2, y 2 ], [y 1, y 2 ], [y 1, z], [y 2, z]}). We note that H[{x 1, x 2, y 1, y 2 }] is isomorphic to P 4. Let (Q, S) be a hypergraph with S n = Q S. First we build the P 4 -identifier I of (Q, S). Then we construct a graph G by adding a new vertex r and edges [r, S n ] and [r, S n ]. We claim that (Q, S) is 2-colorable if and only if G is H 12 - contractible. Suppose (Q, S) is 2-colorable. We define the following H 12 -witness sets of G: W(x 1 ) ={t 1 }, W(x 2 ) ={t 2 }, W(y 1 ) = S Q 1, W(y 2 ) = S Q 2, and W(z) ={r}. Suppose G is H 12 -contractible with witness structure W. Since S n and S n are adjacent to all vertices in Q, in graph G only the distance between vertices t 1 and t 2 is at least three. Then, by Observation 4.1, we may assume without of generality that W(x 1 ) ={t 1 } and W(x 2 ) ={t 2 }. Since all vertices of S are adjacent to t 1 and all vertices of S are adjacent to t 2, both witness sets W(y 1 ) and W(y 2 ) are not equal to {r}. Since r is only adjacent to S n and S n,we then find that G[V G \{r}] = I is P 4 -contractible. Hence, due to Proposition 11, the instance (Q, S) has a 2-coloring. The H 13 -Contractibility problem is NP- Theorem 14. complete. Proof. We write H 13 = ({w, x 1, x 2, y, z}, {[w, x 1 ], [w, x 2 ], [x 1, x 2 ], [x 1, y], [x 2, y], [y, z]}). We note that H[{w, x 2, y, z}] is isomorphic to P 4. Let (Q, S) be a hypergraph with S n = Q S. We may assume that S 2. First we build the P 4 -identifier I of (Q, S). Then we construct a graph G by adding a new vertex r and edges [r, t 1 ], [r, S n ], and [r, S n ]. We claim that (Q, S) is 2-colorable if and only if G is H 11 -contractible. Suppose (Q, S) is 2-colorable. We define the following H 13 -witness sets of G: W(w) ={t 1 }, W(x 1 ) ={r}, W(x 2 ) = S Q 1, W(y) = S Q 2, and W(z) ={t 2 }. Suppose G is H 13 -contractible with witness structure W. Since S 2, graph G is 2-connected. Then, by Lemma 3.4, we may assume that W(x 1 ) consists of a single vertex. If W(x 1 ) ={r}, then G[V G \{r}] = I is P 4 -contractible. Then, due to Proposition 11, hypergraph (Q, S) has a 2-coloring. Now suppose W(x 1 ) = {r}. Since S n and S n are adjacent to all vertices in Q, we find that in graph G only the distance between vertex t 1 and t 2 is at least three. Then, by Observation 4.1, we know that either W(w) ={t 1 } and W(z) ={t 2 }, or else that W(w) ={t 2 } and W(z) ={t 1 }. First suppose that W(w) ={t 1 } and W(z) ={t 2 }. Since W(x 1 ) consists of a single vertex not equal to r, witness set W(x 1 ) ={S} for some S S. By Observation 4.1 we deduce that (S {r}) \{S} W(x 2 ), and that the vertices in S are in W(y). Then W(x 2 ) ={r} Q 1 (S\{S}) and W(y) = Q 2 S, where Q 1 covers S\{S} and Q 2 covers S. Since G[S] is edgeless and W(x 1 ) is not adjacent to W(x 2 ), vertex S is adjacent to a vertex in Q 1. Hence, Q 1 Q 2 is a 2-coloring of (Q, S). The case W(w) ={t 2 } and W(z) ={t 1 } can be proven according to similar arguments. If we add the edge [t 1, t 2 ] to P 4 -identifier I of a hypergraph (Q, S) we obtain the C 4 -identifier I # of (Q, S). We need the following result from [3] to prove NP-completeness of the H 14 -Contractibility problem. It immediately implies that the C 4 -Contractibility problem is NP-complete. Since [3] only provides a sketch of the proof, we add its proof for completeness. Proposition 15 ([3]). A hypergraph (Q, S) with Q S is 2- colorable if and only if its C 4 -identifier I # is C 4 -contractible. Proof. Let S n = Q. We write C 4 = z 1 z 2 z 3 z 4 z 1.For a 2-coloring Q 1 Q 2 of (Q, S), C 4 -witness sets of I # are W(z 1 ) = {t 1 }, W(z 2 ) = S Q 1, W(z 3 ) = S Q 2, and W(z 4 ) ={t 2 }. Suppose I # is C 4 -contractible with witness structure W. Suppose t 1, t 2 are in the same witness set, say W(z 1 ). Since all vertices in S S are adjacent to {t 1, t 2 }, we find that W(z 3 ) Q. This implies that both S n and S n are in W(z 2) W(z 4 ). Since S n and S n are adjacent, S n and S n cannot be in two nonadjacent witness sets. Hence we assume without loss of generality that {S n, S n } W(z 2). However, then we find that W(z 4 ) is empty. Hence, t 1 and t 2 are not in the same witness set. Since t 1 and t 2 are adjacent, we then find that t 1 and t 2 are in two adjacent witness sets, say t 1 W(z 1 ) and t 2 W(z 2 ). Since t 1 and S n are adjacent, we find that S n / W(z 3 ).If S n W(z 1 ), then W(z 3 ) cannot contain any vertices. Suppose S n W(z 2 ). Then W(z 4 ) S. Since G[S] is edgeless, we find that W(z 4 ) ={S} for some S S\{S n }. However, this implies that W(z 2 ) does not contain vertices of S. We then 186 NETWORKS 2008 DOI 10.1002/net

find that there does not exist a path from S n to t 2 in W(t 2 ). Hence, S n W(z 4 ). Since S n W(z 4 ) is adjacent to all vertices in S, there are no vertices of S in W(z 2 ). Since G[W(z 2 )] is connected, we then obtain W(z 2 ) ={t 2 }. By using the same arguments as above, we find that S n W(z 3) and W(z 1 ) ={t 1 }. Since t 1 is adjacent to all vertices in S and t 2 is adjacent to all vertices in S, we then obtain S W(z 4 ) and S W(z 3 ). Then W(z 3 ) = Q 1 S and W(z 4 ) = Q 2 S for some partition Q 1 Q 2 of Q. Since G[W(z 3 )] and G[W(z 4 )] are connected, partition Q 1 Q 2 is a 2-coloring of (Q, S). The H 14 -Contractibility problem is NP- Theorem 16. complete. Proof. We write H 14 = ({x 1, x 2, y 1, y 2, z}, {[x 1, x 2 ], [x 1, y 1 ], [x 1, y 2 ], [x 2, y 1 ], [x 2, y 2 ], [y 1, z], [y 2, z]}). We note that H[{x 2, y 1, y 2, z}] is isomorphic to C 4. Let (Q, S) be a hypergraph with S n = Q S. First, we build its C 4 -identifier I #. Then we construct a graph G by adding a new vertex r together with edges [r, t 1 ], [r, t 2 ], and [r, S] for all S S. Suppose (Q, S) is 2-colorable. We define the following H 14 -witness sets of G: W(y 1 ) ={t 2 }, W(x 1 ) ={r}, W(x 2 ) = {t 1 }, W(y 2 ) = S Q 1, and W(z) = S Q 2. Suppose G is H 14 -contractible with witness structure W. We first observe that N(t 1 ) = N(r). This implies that whenever t 1 and r are in the same witness set, we can delete r from this set without destroying the connectivity. In that case, the graph G[V G \{r}] is H 14 -contractible. Since H 14 is C 4 -contractible, we then find that G[V G \{r}] = I # is C 4 - contractible. Then we obtain a 2-coloring of (Q, S) due to Proposition 15. From now on we assume that r and t 1 are in separate witness sets. Since G is 2-connected,we may assume that W(x 1 ) consists of a single vertex, due to Lemma 3.4. We distinguish six cases. Case 1. W(x 1 ) = {r}. Then G[V G \{r}] = I # is C 4 - contractible. We obtain a 2-coloring of (Q, S) due to Proposition 15. Case 2. W(x 1 ) ={t 1 }. Since N(t 1 ) = N(r), we argue in the same way as for Case 1. Case 3. W(x 1 ) ={q} for some vertex q Q. By Observation 4.1 we find that both S n and S n are in W(x 2) W(y 1 ) W(y 2 ). Suppose S n W(x 2 ). Vertex S n is adjacent to all the vertices in V G \(S {t 2 }). Therefore, by Observation 4.1, witness set W(z) S {t 2 }. Because S is not adjacent to t 2, witness set W(z) is either equal to {t 2 } or consists of a vertex in S. Then, we use Observation 4.1 to find that the vertices t 1 and r must be in W(y 1 ) W(y 2 ). Since there are no edges between W(y 1 ) and W(y 2 ), the adjacent vertices t 1 and r must be in the same witness set, a contradiction. So S n is either in W(y 1 ) or in W(y 2 ). We may assume without loss of generality that S n W(y 1 ). By Observation 4.1, witness set W(y 2 ) S {t 2 }. Since S is not adjacent to t 2, witness set W(y 2 ) is either equal to {t 2 } or consists of a vertex in S. In both cases, by Observation 4.1, vertices t 1, r are in W(x 1 ) W(x 2 ) W(z). Since W(x 1 ) ={q} and there are no edges between W(x 2 ) and W(z), the adjacent vertices t 1 and r must be in the same witness set, a contradiction. Hence, we conclude that Case 3 does not occur. Case 4. W(x 1 ) = {t 2 }. By Observation 4.1, witness set W(z) is a subset of S Q. Suppose W(z) contains some vertices of S. Then, by Observation 4.1, witness set W(x 2 ) is a subset of Q S. Hence, there are no edges between W(x 1 ) and W(x 2 ), a contradiction. So W(z) Q. Then S n and S n are either in W(y 1) or in W(y 2 ). Assume without loss of generality that S n W(y 1 ). Because [S n, S n ] is an edge in G, also vertex S n is in W(y 1). This means that W(y 1 ) N(W(y 1 )) = V G, and then Observation 4.1 implies that W(y 2 ) is empty, a contradiction. Hence, we conclude that Case 4 does not occur. Case 5. W(x 1 ) ={S} for some S S. By Observation 4.1 and our assumption that the adjacent vertices r and t 1 are in separated witness sets, we may assume without loss of generality that t 1 W(y 1 ) and r W(x 2 ). Since W(x 1 ) ={S} and r W(x 2 ), we find by Observation 4.1 that W(z) Q. Vertex S n is then adjacent to vertices from all three witness sets W(y 1 ), W(x 2 ), and W(z). Therefore, by Observation 4.1, vertex S n is in W(y 1 ). Since S n is adjacent to S n W(y 1 ) and all vertices in W(z) Q, vertex S n is in W(y 1) as well. This means that W(y 1 ) N(W(y 1 )) = V G. Then Observation 4.1 implies that W(y 2 ) is empty, a contradiction. Hence, we conclude that Case 5 does not occur. Case 6. W(x 1 ) ={S } for some S S. By Observation 4.1, witness set W(z) Q S {r, t 1 }. Because r and t 1 are not adjacent to any vertex in Q S, we have either W(z) Q S or W(z) {r, t 1 }. First suppose W(z) {r, t 1 }. Since we assumed that r and t 1 are in separate witness sets, witness set W(z) is either equal to {r} or to {t 1 }. Assume without loss of generality that W(z) = {r}. By Observation 4.1, vertices t 1 and t 2 must be in the same witness set that is adjacent to W(z), say W(y 1 ). However, this implies that W(y 2 ) is a subset of Q due to Observation 4.1. Then W(y 2 ) is not adjacent to W(z), a contradiction. So we obtain W(z) Q S. Since the adjacent vertices r and t are in separated witness sets that must be adjacent due to Observation 4.1, we may assume without loss of generality that r W(y 1 ) and t 1 W(x 2 ). If there is a vertex of S in W(z), then S n is adjacent to all three witness sets W(y 1 ), W(x 2 ), and W(z). Therefore, by Observation 4.1, vertex S n is in W(y 1 ), and consequently W(y 1 ) N(W(y 1 )) = V G. Observation 4.1 implies that W(y 2 ) is empty, a contradiction. We are left to consider the situation in which W(z) Q. Then S n is adjacent to all three witness sets W(y 1 ), W(x 2 ), and NETWORKS 2008 DOI 10.1002/net 187