# Claw-free graph

In graph theory, an area of mathematics, a claw-free graph is a graph that does not have a claw as an induced subgraph.
A claw is another name for the complete bipartite graph $K_{1,3}$ (that is, a star graph comprising three edges, three leaves, and a central vertex). A claw-free graph is a graph in which no induced subgraph is a claw; i.e., any subset of four vertices has other than only three edges connecting them in this pattern. Equivalently, a claw-free graph is a graph in which the neighborhood of any vertex is the complement of a triangle-free graph.
Claw-free graphs were initially studied as a generalization of line graphs, and gained additional motivation through three key discoveries about them: the fact that all claw-free connected graphs of even order have perfect matchings, the discovery of polynomial time algorithms for finding maximum independent sets in claw-free graphs, and the characterization of claw-free perfect graphs. They are the subject of hundreds of mathematical research papers and several surveys.

## Examples

* The line graph $L(G)$ of any graph $G$ is claw-free. $L(G)$ is defined as having a vertex for every edge of $G$. Two vertices are adjacent in $L(G)$ whenever the corresponding edges share an endpoint in $G$. A line graph $L(G)$ cannot contain a claw. If three edges $e_{1}$, $e_{2}$, and $e_{3}$ in $G$ all share endpoints with another edge $e_{4}$ (forming a tree in $L(G)$ with $e_{1}$, $e_{2}$, and $e_{3}$ as its leaves and $e_{4}$ as an internal vertex), then there must be another adjacency between these edges, preventing this tree from being an induced subgraph. This is because, by the pigeonhole principle, at least two of $e_{1}$, $e_{2}$, and $e_{3}$ must share one of the two endpoints of $e_{4}$ with each other, and are therefore adjacent in $L(G)$. Line graphs may be characterized in terms of nine forbidden subgraphs; the claw is the simplest of these nine graphs. This characterization provided the initial motivation for studying claw-free graphs.
* The complement of any triangle-free graph is claw-free. These graphs include as a special case any complete graph.
* Proper interval graphs, the interval graphs formed as intersection graphs of families of intervals in which no interval contains another interval, are claw-free, because four properly intersecting intervals cannot intersect in the pattern of a claw. The same is true more generally for proper circular-arc graphs.
* The Moser spindle, a seven-vertex graph used to provide a lower bound for the chromatic number of the plane, is claw-free.
* The graphs of several polyhedra and polytopes are claw-free, including the graph of the tetrahedron and more generally of any simplex (a complete graph), the graph of the octahedron and more generally of any cross polytope (isomorphic to the cocktail party graph formed by removing a perfect matching from a complete graph), the graph of the regular icosahedron, and the graph of the 16-cell.
* The Schläfli graph, a strongly regular graph with 27 vertices, is claw-free.

## Recognition

It is straightforward to verify that a given graph with $n$ vertices and $m$ edges is claw-free in time $n^{4}$, by testing each 4-tuple of vertices to determine whether they induce a claw. With more efficiency, and greater complication, one can test whether a graph is claw-free by checking, for each vertex of the graph, that the complement graph of its neighbors does not contain a triangle. A graph contains a triangle if and only if the cube of its adjacency matrix contains a nonzero diagonal element, so finding a triangle may be performed in the same asymptotic time bound as $n\times n$ matrix multiplication. Therefore, using fast matrix multiplication, the total time for this claw-free recognition algorithm would be $O(n^{3.372})$.
Kloks, Kratsch & Müller (2000) observe that in any claw-free graph, each vertex has at most $2{\sqrt {m}}$ neighbors; for otherwise by Turán's theorem the neighbors of the vertex would not have enough remaining edges to form the complement of a triangle-free graph. This observation allows the check of each neighborhood in the fast matrix multiplication based algorithm outlined above to be performed in the same asymptotic time bound as $2{\sqrt {m}}\times 2{\sqrt {m}}$ matrix multiplication, or faster for vertices with even lower degrees. The worst case for this algorithm occurs when $\Omega ({\sqrt {m}})$ vertices have $\Omega ({\sqrt {m}})$ neighbors each, and the remaining vertices have few neighbors, so its total time is $O(m^{3.372/2})=O(m^{1.686})$.

## Enumeration

Because claw-free graphs include complements of triangle-free graphs, the number of claw-free graphs on $n$ vertices grows at least as quickly as the number of triangle-free graphs, exponentially in the square of $n$. The numbers of connected claw-free graphs on $n$ nodes, for $n=1,2,\dots ,$ are
    1, 1, 2, 5, 14, 50, 191, 881, 4494, 26389, 184749, ... (sequence A022562 in the OEIS).
If the graphs are allowed to be disconnected, the numbers of graphs are even larger: they are
    1, 2, 4, 10, 26, 85, 302, 1285, 6170, ... (sequence A086991 in the OEIS).
A technique of Palmer, Read & Robinson (2002) allows the number of claw-free cubic graphs to be counted very efficiently, unusually for graph enumeration problems.

## Matchings

Sumner (1974) and, independently, Las Vergnas (1975) proved that every claw-free connected graph with an even number of vertices has a perfect matching. That is, there exists a set of edges in the graph such that each vertex is an endpoint of exactly one of the matched edges. The special case of this result for line graphs implies that, in any graph with an even number of edges, one can partition the edges into paths of length two. Perfect matchings may be used to provide another characterization of the claw-free graphs: they are exactly the graphs in which every connected induced subgraph of even order has a perfect matching.
Sumner's proof shows, more strongly, that in any connected claw-free graph one can find a pair of adjacent vertices the removal of which leaves the remaining graph connected. To show this, Sumner finds a pair of vertices $u$ and $v$ that are as far apart as possible in the graph, and chooses $w$ to be a neighbor of $v$ that is as far from $u$ as possible. As he shows, neither $v$ nor $w$ can lie on any shortest path from any other node to $u$, so the removal of $v$ and $w$ leaves the remaining graph connected. Repeatedly removing matched pairs of vertices in this way forms a perfect matching in the given claw-free graph.
The same proof idea holds more generally if $u$ is any vertex, $v$ is any vertex that is maximally far from $u$, and $w$ is any neighbor of $v$ that is maximally far from $u$. Further, the removal of $v$ and $w$ from the graph does not change any of the other distances from $u$. Therefore, the process of forming a matching by finding and removing pairs $(v,w)$ that are maximally far from $u$ may be performed by a single postorder traversal of a breadth first search tree of the graph, rooted at $u$, in linear time. Chrobak, Naor & Novick (1989) provide an alternative linear-time algorithm based on depth-first search, as well as efficient parallel algorithms for the same problem.
Faudree, Flandrin & Ryjáček (1997) list several related results, including the following: $(r-1)$-connected $K_{1,r}$-free graphs of even order have perfect matchings for any $r\geq 2$; claw-free graphs of odd order with at most one degree-one vertex may be partitioned into an odd cycle and a matching; for any $k$ that is at most half the minimum degree of a claw-free graph in which either $k$ or the number of vertices is even, the graph has a $k$-factor; and, if a claw-free graph is $(2k+1)$-connected, then any $k$-edge matching can be extended to a perfect matching.

## Independent sets

An independent set in a line graph corresponds to a matching in its underlying graph, a set of edges no two of which share an endpoint. The blossom algorithm of Edmonds (1965) finds a maximum matching in any graph in polynomial time, which is equivalent to computing a maximum independent set in line graphs. This has been independently extended to an algorithm for all claw-free graphs by Sbihi (1980) and Minty (1980).
Both approaches use the observation that in claw-free graphs, no vertex can have more than two neighbors in an independent set, and so the symmetric difference of two independent sets must induce a subgraph of degree at most two; that is, it is a union of paths and cycles. In particular, if $I$ is a non-maximum independent set, it differs from any maximum independent set by even cycles and so called augmenting paths: induced paths which alternate between vertices not in $I$ and vertices in $I$, and for which both endpoints have only one neighbor in $I$. As the symmetric difference of $I$ with any augmenting path gives a larger independent set, the task thus reduces to searching for augmenting paths until no more can be found, analogously as in algorithms for finding maximum matchings.
Sbihi's algorithm recreates the blossom contraction step of Edmonds' algorithm and adds a similar, but more complicated, clique contraction step. Minty's approach is to transform the problem instance into an auxiliary line graph and use Edmonds' algorithm directly to find the augmenting paths. After a correction by Nakamura & Tamura 2001, Minty's result may also be used to solve in polynomial time the more general problem of finding in claw-free graphs an independent set of maximum weight. Generalizations of these results to wider classes of graphs are also known. By showing a novel structure theorem, Faenza, Oriolo & Stauffer (2011) gave a cubic time algorithm, which also works in the weighted setting.

## Coloring, cliques, and domination

A perfect graph is a graph in which the chromatic number and the size of the maximum clique are equal, and in which this equality persists in every induced subgraph. It is now known (the strong perfect graph theorem) that perfect graphs may be characterized as the graphs that do not have as induced subgraphs either an odd cycle or the complement of an odd cycle (a so-called odd hole). However, for many years this remained an unsolved conjecture, only proven for special subclasses of graphs. One of these subclasses was the family of claw-free graphs: it was discovered by several authors that claw-free graphs without odd cycles and odd holes are perfect. Perfect claw-free graphs may be recognized in polynomial time. In a perfect claw-free graph, the neighborhood of any vertex forms the complement of a bipartite graph. It is possible to color perfect claw-free graphs, or to find maximum cliques in them, in polynomial time.
In general, it is NP-hard to find the largest clique in a claw-free graph. It is also NP-hard to find an optimal coloring of the graph, because (via line graphs) this problem generalizes the NP-hard problem of computing the chromatic index of a graph. For the same reason, it is NP-hard to find a coloring that achieves an approximation ratio better than 4/3. However, an approximation ratio of two can be achieved by a greedy coloring algorithm, because the chromatic number of a claw-free graph is greater than half its maximum degree. A generalization of the edge list coloring conjecture states that, for claw-free graphs, the list chromatic number equals the chromatic number; these two numbers can be far apart in other kinds of graphs.
The claw-free graphs are χ-bounded, meaning that every claw-free graph of large chromatic number contains a large clique. More strongly, it follows from Ramsey's theorem that every claw-free graph of large maximum degree contains a large clique, of size roughly proportional to the square root of the degree. For connected claw-free graphs that include at least one three-vertex independent set, a stronger relation between chromatic number and clique size is possible: in these graphs, there exists a clique of size at least half the chromatic number.
Although not every claw-free graph is perfect, claw-free graphs satisfy another property, related to perfection. A graph is called domination perfect if it has a minimum dominating set that is independent, and if the same property holds in all of its induced subgraphs. Claw-free graphs have this property. To see this, let $D$ be a dominating set in a claw-free graph, and suppose that $v$ and $w$ are two adjacent vertices in $D$. Then the set of vertices dominated by $v$ but not by $w$ must be a clique (else $v$ would be the center of a claw). If every vertex in this clique is already dominated by at least one other member of $D$, then $v$ can be removed producing a smaller independent dominating set, and otherwise $v$ can be replaced by one of the undominated vertices in its clique producing a dominating set with fewer adjacencies. By repeating this replacement process one eventually reaches a dominating set no larger than $D$, so in particular when the starting set $D$ is a minimum dominating set this process forms an equally small independent dominating set.
Despite this domination perfectness property, it is NP-hard to determine the size of the minimum dominating set in a claw-free graph. However, in contrast to the situation for more general classes of graphs, finding the minimum dominating set or the minimum connected dominating set in a claw-free graph is fixed-parameter tractable: it can be solved in time bounded by a polynomial in the size of the graph multiplied by an exponential function of the dominating set size.

## Structure

Chudnovsky & Seymour (2005) overview a series of papers in which they prove a structure theory for claw-free graphs, analogous to the graph structure theorem for minor-closed graph families proven by Robertson and Seymour, and to the structure theory for perfect graphs that Chudnovsky, Seymour and their co-authors used to prove the strong perfect graph theorem. The theory is too complex to describe in detail here, but to give a flavor of it, it suffices to outline two of their results. First, for a special subclass of claw-free graphs which they call quasi-line graphs (equivalently, locally co-bipartite graphs), they state that every such graph has one of two forms:
* A fuzzy circular interval graph, a class of graphs represented geometrically by points and arcs on a circle, generalizing proper circular arc graphs.
* A graph constructed from a multigraph by replacing each edge by a fuzzy linear interval graph. This generalizes the construction of a line graph, in which every edge of the multigraph is replaced by a vertex. Fuzzy linear interval graphs are constructed in the same way as fuzzy circular interval graphs, but on a line rather than on a circle.
Chudnovsky and Seymour classify arbitrary connected claw-free graphs into one of the following:
* Six specific subclasses of claw-free graphs. Three of these are line graphs, proper circular arc graphs, and the induced subgraphs of an icosahedron; the other three involve additional definitions.
* Graphs formed in four simple ways from smaller claw-free graphs.
* Antiprismatic graphs, a class of dense graphs defined as the claw-free graphs in which every four vertices induce a subgraph with at least two edges.
Much of the work in their structure theory involves a further analysis of antiprismatic graphs. The Schläfli graph, a claw-free strongly regular graph with parameters srg(27,16,10,8), plays an important role in this part of the analysis. This structure theory has led to new advances in polyhedral combinatorics and new bounds on the chromatic number of claw-free graphs, as well as to new fixed-parameter-tractable algorithms for dominating sets in claw-free graphs.