Tutorials › Graph Theory (Undergraduate) › Finding an Ear in a 2-Connected Graph

Cut Vertices, Bridges and Blocks · Tutorial 179 of 799

Finding an Ear in a 2-Connected Graph

See how 2-connectivity guarantees an ear that extends any proper 2-connected subgraph.

Intermediate 9 min read

What You'll Learn

  • Define open ears relative to a subgraph.
  • Identify the attachment vertices of an outside component.
  • Prove that an outside component must attach at two or more vertices.
  • Construct an ear using a path through an outside component.
  • Handle the case where the subgraph already contains every vertex.
  • Check ear existence in explicit graphs.

Why an Ear Must Be Available

An ear is a path that joins two vertices of a subgraph while using new vertices in between. The key question is when such a path is guaranteed to exist. Here, the guarantee comes from 2-connectivity: a component lying outside a 2-connected subgraph cannot connect to the rest of the graph through just one vertex. Two distinct attachment vertices allow us to build a path that enters and leaves that component, producing an ear.

All graphs in this tutorial are finite and simple. A graph is connected if every pair of its vertices is joined by a path. A cut vertex is a vertex whose deletion increases the number of connected components. We call a graph 2-connected if it has at least three vertices, is connected, and has no cut vertex. A subgraph \(H\) of \(G\) may omit vertices, edges, or both; it is proper if \(H\ne G\).

Definition: Let \(H\) be a subgraph of \(G\). An open ear of \(H\) in \(G\) is a path in \(G\) with distinct endpoints in \(V(H)\), all internal vertices outside \(V(H)\), and at least one edge not in \(E(H)\). The path consisting of a single edge \(uv\notin E(H)\), where \(u,v\in V(H)\), is allowed: it has no internal vertices.

For a component \(C\) of the subgraph induced by the vertices outside \(H\), its attachment set in \(H\) is the set of vertices of \(H\) adjacent to at least one vertex of \(C\). It counts distinct vertices, not edges. If the attachment set contains distinct vertices \(x\) and \(y\), a path through \(C\) from a neighbor of \(x\) to a neighbor of \(y\), together with the edges to \(x\) and \(y\), is a candidate ear.

The Attachment Lemma

Lemma: Let \(G\) be 2-connected, and let \(H\) be a 2-connected subgraph with \(V(H)\ne V(G)\). Every component of \(G-V(H)\) has at least two distinct attachment vertices in \(H\).

Proof. Let \(C\) be a component of \(G-V(H)\), and let \(S\) be its attachment set in \(H\). Suppose that \(S\) has at most one vertex. If \(S=\{x\}\), consider \(G-x\). The vertices of \(C\) have no neighbors in \(H-x\), by the definition of \(S\). They also have no edges to another component of \(G-V(H)\), because distinct components have no edges between them. Thus \(C\) has no path to \(H-x\) in \(G-x\). The graph \(H-x\) has at least two vertices and is connected, since \(H\) is 2-connected. Therefore \(G-x\) is disconnected, making \(x\) a cut vertex of \(G\), a contradiction. If \(S=\varnothing\), then \(C\) has no neighbors in \(H\); since \(G\) is connected, this is impossible. Hence \(|S|\ge2\). \(\square\)

The argument uses the full strength of the hypothesis on \(H\): after deleting one possible attachment vertex \(x\), the remaining vertices of \(H\) are still connected and nonempty. The hypothesis on \(G\) rules out the resulting separation. Once two attachments are known, only connectedness of the outside component is needed to find a path between them.

Finding the Ear

Theorem: If \(G\) is 2-connected and \(H\) is a proper 2-connected subgraph of \(G\), then \(G\) contains an open ear of \(H\).

Proof. First suppose \(V(H)\ne V(G)\). Choose a component \(C\) of \(G-V(H)\). By the attachment lemma, \(C\) has distinct attachment vertices \(x,y\in V(H)\). Choose a vertex \(a\in C\) adjacent to \(x\), and a vertex \(b\in C\) adjacent to \(y\). Because \(C\) is connected, there is an \(a\)-\(b\) path in \(C\). Choose one with the fewest edges; it has no repeated vertices, since removing the portion between two repeated occurrences would give a shorter walk and hence a shorter path. If \(a=b\), use the length-zero path consisting of that single vertex. Prepending the edge \(xa\) and appending the edge \(by\) gives a path from \(x\) to \(y\). Its internal vertices all lie in \(C\), so they are outside \(H\); its endpoints are distinct vertices of \(H\). It is therefore an open ear of \(H\).

Now suppose \(V(H)=V(G)\). Because \(H\) is proper, some edge \(uv\) belongs to \(E(G)\setminus E(H)\). The edge \(uv\) is a path with distinct endpoints in \(H\) and no internal vertices. It is an open ear by the definition. These cases cover every proper subgraph \(H\), proving the theorem. \(\square\)

This is an existence proof that also gives a construction: find an outside component, identify two of its attachments, and connect neighbors of those attachments by a path inside the component. The earlier result on adding an ear shows that adjoining the ear to \(H\) gives a larger 2-connected subgraph. The theorem here supplies the ear; it does not require the ear to use every vertex outside \(H\).

Worked Examples

Worked Example: An Outside Component Gives an Ear

Let \(H\) have vertex set \(\{1,2,3\}\) and edge set \(\{12,23,31\}\). Let \(G\) have vertex set \(\{1,2,3,a,b,c\}\) and edge set \(\{12,23,31,1a,ab,bc,c2\}\). Thus \(G-V(H)\) has the single component \(C=\{a,b,c\}\), with edges \(ab\) and \(bc\).

The neighbors of \(C\) in \(H\) are \(1\) and \(2\): the edge \(1a\) attaches \(C\) to \(1\), and \(c2\) attaches it to \(2\). The internal path from \(a\) to \(c\) in \(C\) is \(a,b,c\). Adding the two attachment edges gives the path \(1,a,b,c,2\), an ear with three internal vertices.

Check the hypotheses. The graph \(H\) is a triangle, so it is connected and deleting any one vertex leaves an edge. The graph \(G\) is connected. Deleting \(1\) leaves the edge \(23\) and the path \(a,b,c,2\), which form a connected graph; deleting \(2\) leaves the edge \(13\) and the path \(1,a,b,c\), also connected. Deleting \(3\) leaves the connected path \(1,a,b,c,2\). Deleting \(a\) leaves the triangle and the path \(b,c,2\), attached at \(2\); deleting \(c\) leaves the triangle and the path \(a,b,1\), attached at \(1\). Deleting \(b\) leaves the triangle, with \(a\) attached at \(1\) and \(c\) attached at \(2\). Thus deleting any vertex leaves a connected graph, and \(G\) is 2-connected.

Check: the constructed path uses the edges \(1a,ab,bc,c2\), all of which are in \(G\); its endpoints \(1,2\) lie in \(H\), and its internal vertices \(a,b,c\) do not. Also, \(H\) has \(3\) vertices and \(G\) has \(6\), so this is the case with vertices outside \(H\).

Worked Example: A Component with Three Attachments

Let \(H\) have vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23,34,41\}\). Let \(G\) have vertex set \(\{1,2,3,4,a,b,c\}\) and edge set \(\{12,23,34,41,1a,ab,bc,c3,b2\}\). The outside vertices form one component \(C=\{a,b,c\}\), with attachment set \(\{1,2,3\}\).

For instance, \(a\) is adjacent to \(1\), \(b\) is adjacent to \(2\), and \(c\) is adjacent to \(3\). Choose the distinct attachments \(1\) and \(3\). The path \(a,b,c\) lies within \(C\); adding the edges \(1a\) and \(c3\) gives the ear \(1,a,b,c,3\). The extra edge \(b2\) gives \(C\) a third attachment, but it is not needed for this ear.

To check that \(G\) is 2-connected, the base cycle \(1,2,3,4,1\) remains connected after any one vertex is deleted. If an internal vertex of the added path is deleted, the remaining pieces of that path attach to the base cycle at \(1\), \(2\), or \(3\). More explicitly, deleting \(a\) leaves \(b,c\) attached at \(2\) and \(3\); deleting \(b\) leaves \(a\) attached at \(1\) and \(c\) at \(3\); deleting \(c\) leaves \(a,b\) attached at \(1\) and \(2\). If a base-cycle vertex is deleted, the remaining three cycle vertices form a path. Deleting \(1\) leaves the added component attached at \(2\) and \(3\); deleting \(2\) leaves it attached at \(1\) and \(3\); deleting \(3\) leaves it attached at \(1\) and \(2\); deleting \(4\) leaves all three attachments. In each case the remaining graph is connected.

Check: the ear \(1,a,b,c,3\) has length \(4\), from the edges \(1a,ab,bc,c3\), and has \(3\) internal vertices. All are outside \(H\). This also shows why the attachment set is a set of vertices: the three attachments are \(1,2,3\), regardless of how many edges join \(C\) to them.

Worked Example: A Missing Edge Is a One-Edge Ear

Let \(H\) have vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23,34,41\}\), and let \(G\) have the same vertex set with edge set \(\{12,23,34,41,13,24\}\). The graph \(H\) is a 4-cycle, and \(G\) is \(K_4\). The subgraph \(H\) is proper even though it contains every vertex of \(G\).

There are no components of \(G-V(H)\), so the attachment argument does not apply. Instead, the edge \(13\) is in \(E(G)\) but not in \(E(H)\). The path consisting of that single edge is an ear of \(H\), with endpoints \(1\) and \(3\) and no internal vertices.

Check: deleting any vertex from the 4-cycle leaves a connected path on three vertices, so \(H\) is 2-connected. Deleting any vertex from \(K_4\) leaves a triangle, so \(G\) is 2-connected. The edge \(13\) is an ear because its endpoints belong to \(H\), it is not an edge of \(H\), and a one-edge path has no internal vertices to check.

Common Pitfalls and Why the Result Matters

Do not count attachment edges instead of attachment vertices. Suppose an outside component has several edges to the same vertex \(x\in V(H)\). Its attachment set still contains only \(x\). For example, let \(H\) be a triangle on \(\{1,2,3\}\), and let \(G\) add vertices \(a,b\) and edges \(xa,xb,ab\), where \(x=1\). Counting \(1a,1b,ab\) as three attachments would be wrong: the only vertex of \(H\) adjacent to the outside component is \(1\). Moreover, this \(G\) is not 2-connected: deleting \(1\) separates \(a,b\) from \(2,3\). The attachment lemma concerns distinct neighbors in \(H\), and its conclusion depends on 2-connectivity.

Do not select a path that merely has endpoints in \(H\). Its internal vertices must be outside \(H\). In the first worked example, \(1,2,3\) is a path in \(H\), not an ear of \(H\), even though its endpoints lie in \(H\). The path \(1,a,b,c,2\) works because every internal vertex is outside \(H\).

The theorem matters because it lets us grow a 2-connected subgraph in stages: whenever it is still proper, an ear is available, including a one-edge ear when only edges are missing. This existence result is an important step toward describing 2-connected graphs by sequences of ears. The essential reasoning is local: an outside component with only one attachment would create a cut vertex, so it must offer two distinct endpoints for a path through the component.

Check Your Understanding

For each question, distinguish the outside component from its attachment set, and check all stated hypotheses.

  1. Why does deleting the sole attachment vertex \(x\) disconnect an outside component from \(H-x\)? Which properties of \(G\) and \(H\) make this a contradiction?
  2. Let \(H\) be a 2-connected subgraph of a 2-connected graph \(G\), with \(V(H)\ne V(G)\). Explain how two attachment vertices produce an ear, including the case where their neighbors in the outside component are the same vertex.
  3. Why does a proper spanning subgraph \(H\) of \(G\) have a one-edge ear, even though \(G-V(H)\) has no components?
  4. In the second worked example, list the three distinct attachment vertices and explain why the edge \(b2\) is not needed to construct the displayed ear.
  5. Give an example of several edges from an outside component to \(H\) that have only one attachment vertex. Explain why this does not contradict the attachment lemma.