Nepedia
Back to Discover
Advanced Reader
🔢

Edge contraction

math Maturity 11-13 Next article →

In the field of graph theory, mathematicians use specific operations to transform graphs. One of the most fundamental tools is edge contraction. A graph is made of vertices, which are points, and edges, which are lines connecting them. Edge contraction is a process that simplifies a graph by reducing its size. It does this by removing an edge and merging the two vertices that the edge connected. This operation is essential to the study of graph minors.

Edge contraction
Edge contraction

To perform an edge contraction, you must select a specific edge. Let us say this edge connects two vertices called $u$ and $v$. First, the edge itself is removed from the graph. Next, the two vertices, $u$ and $v$, are merged into a single new vertex. We can call this new vertex $w$. Every edge that was once connected to $u$ or $v$ is now connected to $w$. This process effectively collapses the distance between the two points to zero.

Edge contraction with multiple edges
Edge contraction with multiple edges

This operation can change the nature of the graph. Even if you start with a simple graph, contraction can create multiple edges. Multiple edges occur when two vertices are connected by more than one line. The process can also create loops. A loop is an edge that starts and ends at the same vertex. Some mathematicians choose to disallow these extra edges. They prefer that edge contractions on simple graphs always result in simple graphs.

Edge contraction with multiple edges
Edge contraction with multiple edges

There are several related ways to manipulate vertices and edges. Vertex identification is a broader version of edge contraction. In vertex identification, you do not need an edge to connect the vertices you want to merge. You can pick any two vertices, or even a whole group, to join together. When you identify vertices based on a specific partition, the result is called a quotient graph. Conversely, vertex cleaving is the reverse process. It involves splitting one vertex into two new ones.

Edge contraction
Edge contraction

Other specialized movements exist within graph theory. Path contraction occurs when a set of edges forming a path is contracted into one single edge. This edge connects the two original endpoints of the path. In this case, edges attached to the middle vertices are either removed or connected to an endpoint. There is also a concept called twisting. This involves two disjoint graphs that are joined at specific vertices. In a twisting, the way these vertices are identified is changed to create a different structure.

Edge contraction is highly useful for mathematical proofs. Many mathematicians use a technique called proof by induction. They prove a property for small graphs first. Then, they use contraction to show the property holds for larger graphs. This method is also used in recursive formulas. For example, it helps calculate the number of spanning trees in a connected graph. It is also used to find the recurrence formula for the chromatic polynomial of a simple graph.

Edge contraction
Edge contraction

Beyond pure math, these operations have practical uses in technology. In 3D modeling, software uses edge contraction to reduce vertex counts. This helps creators build low-polygon models, which are easier for computers to render. In computer science, it is used in register allocation. This process helps eliminate move operations between variables during coalescing. Finally, it can simplify complex directed graphs. By contracting vertices in strongly connected components, a general graph becomes an acyclic directed graph.

Edge contraction
Edge contraction
551 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Edge contraction with multiple edges.svg
Edge contraction with multiple edges.svg
File:Edge contraction.svg
Edge contraction.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.