Misplaced Pages

Edge contraction

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Contraction (graph theory)) Deleting a graph edge and merging its nodes
Contracting the edge between the indicated vertices, resulting in graph G / {uv}.

In graph theory, an edge contraction is an operation that removes an edge from a graph while simultaneously merging the two vertices that it previously joined. Edge contraction is a fundamental operation in the theory of graph minors. Vertex identification is a less restrictive form of this operation.

Definition

The edge contraction operation occurs relative to a particular edge, e {\displaystyle e} . The edge e {\displaystyle e} is removed and its two incident vertices, u {\displaystyle u} and v {\displaystyle v} , are merged into a new vertex w {\displaystyle w} , where the edges incident to w {\displaystyle w} each correspond to an edge incident to either u {\displaystyle u} or v {\displaystyle v} . More generally, the operation may be performed on a set of edges by contracting each edge (in any order).

The resulting graph is sometimes written as G / e {\displaystyle G/e} . (Contrast this with G e {\displaystyle G\setminus e} , which means simply removing the edge e {\displaystyle e} without merging its incident vertices.)

Contracting an edge without creating multiple edges.

As defined below, an edge contraction operation may result in a graph with multiple edges even if the original graph was a simple graph. However, some authors disallow the creation of multiple edges, so that edge contractions performed on simple graphs always produce simple graphs.

Formal definition

Let G = ( V , E ) {\displaystyle G=(V,E)} be a graph (or directed graph) containing an edge e = ( u , v ) {\displaystyle e=(u,v)} with u v {\displaystyle u\neq v} . Let f {\displaystyle f} be a function that maps every vertex in V { u , v } {\displaystyle V\setminus \{u,v\}} to itself, and otherwise, maps it to a new vertex w {\displaystyle w} . The contraction of e {\displaystyle e} results in a new graph G = ( V , E ) {\displaystyle G'=(V',E')} , where V = ( V { u , v } ) { w } {\displaystyle V'=(V\setminus \{u,v\})\cup \{w\}} , E = E { e } {\displaystyle E'=E\setminus \{e\}} , and for every x V {\displaystyle x\in V} , x = f ( x ) V {\displaystyle x'=f(x)\in V'} is incident to an edge e E {\displaystyle e'\in E'} if and only if, the corresponding edge, e E {\displaystyle e\in E} is incident to x {\displaystyle x} in G {\displaystyle G} .

Vertex identification

Vertex identification (sometimes called vertex contraction) removes the restriction that the contraction must occur over vertices sharing an incident edge. (Thus, edge contraction is a special case of vertex identification.) The operation may occur on any pair (or subset) of vertices in the graph. Edges between two contracting vertices are sometimes removed. If v {\displaystyle v} and v {\displaystyle v'} are vertices of distinct components of G {\displaystyle G} , then we can create a new graph G {\displaystyle G'} by identifying v {\displaystyle v} and v {\displaystyle v'} in G {\displaystyle G} as a new vertex v {\displaystyle {\textbf {v}}} in G {\displaystyle G'} . More generally, given a partition of the vertex set, one can identify vertices in the partition; the resulting graph is known as a quotient graph.

Vertex cleaving

Vertex cleaving, which is the same as vertex splitting, means one vertex is being split into two, where these two new vertices are adjacent to the vertices that the original vertex was adjacent to. This is a reverse operation of vertex identification, although in general for vertex identification, adjacent vertices of the two identified vertices are not the same set.

Path contraction

Path contraction occurs upon the set of edges in a path that contract to form a single edge between the endpoints of the path. Edges incident to vertices along the path are either eliminated, or arbitrarily (or systematically) connected to one of the endpoints.

Twisting

Consider two disjoint graphs G 1 {\displaystyle G_{1}} and G 2 {\displaystyle G_{2}} , where G 1 {\displaystyle G_{1}} contains vertices u 1 {\displaystyle u_{1}} and v 1 {\displaystyle v_{1}} and G 2 {\displaystyle G_{2}} contains vertices u 2 {\displaystyle u_{2}} and v 2 {\displaystyle v_{2}} . Suppose we can obtain the graph G {\displaystyle G} by identifying the vertices u 1 {\displaystyle u_{1}} of G 1 {\displaystyle G_{1}} and u 2 {\displaystyle u_{2}} of G 2 {\displaystyle G_{2}} as the vertex u {\displaystyle u} of G {\displaystyle G} and identifying the vertices v 1 {\displaystyle v_{1}} of G 1 {\displaystyle G_{1}} and v 2 {\displaystyle v_{2}} of G 2 {\displaystyle G_{2}} as the vertex v {\displaystyle v} of G {\displaystyle G} . In a twisting G {\displaystyle G'} of G {\displaystyle G} with respect to the vertex set { u , v } {\displaystyle \{u,v\}} , we identify, instead, u 1 {\displaystyle u_{1}} with v 2 {\displaystyle v_{2}} and v 1 {\displaystyle v_{1}} with u 2 {\displaystyle u_{2}} .

Applications

Both edge and vertex contraction techniques are valuable in proof by induction on the number of vertices or edges in a graph, where it can be assumed that a property holds for all smaller graphs and this can be used to prove the property for the larger graph.

Edge contraction is used in the recursive formula for the number of spanning trees of an arbitrary connected graph, and in the recurrence formula for the chromatic polynomial of a simple graph.

Contractions are also useful in structures where we wish to simplify a graph by identifying vertices that represent essentially equivalent entities. One of the most common examples is the reduction of a general directed graph to an acyclic directed graph by contracting all of the vertices in each strongly connected component. If the relation described by the graph is transitive, no information is lost as long as we label each vertex with the set of labels of the vertices that were contracted to form it.

Another example is the coalescing performed in global graph coloring register allocation, where vertices are contracted (where it is safe) in order to eliminate move operations between distinct variables.

Edge contraction is used in 3D modelling packages (either manually, or through some feature of the modelling software) to consistently reduce vertex count, aiding in the creation of low-polygon models.

See also

Notes

  1. Gross & Yellen 1998, p. 264
  2. Also, loops may arise when the graph started with multiple edges or, even if the graph was simple, from the repeated application of edge contraction.
  3. Rosen 2011, p. 664
  4. Oxley 2006, pp. 147โ€“8 ยง5.3 Whitney's 2-Isomorphism Theorem
  5. Oxley 2006, p. 148
  6. Gross & Yellen 1998, p. 264
  7. West 2001, p. 221

References

  • Gross, Jonathan; Yellen, Jay (1998), Graph Theory and its applications, CRC Press, ISBN 0-8493-3982-0
  • Oxley, James (2006) , Matroid Theory, Oxford University Press, ISBN 978-0-19-920250-8
  • Rosen, Kenneth (2011), Discrete Mathematics and Its Applications (7th ed.), McGraw-Hill, ISBN 978-0-07-338309-5
  • West, Douglas B. (2001), Introduction to Graph Theory (2nd ed.), Prentice-Hall, ISBN 0-13-014400-2

External links

Category: