Edge contraction

Edge contraction merges the endpoints of an edge into a single vertex and removes the contracted edge. The operation combines their incident edges, with loops and parallel edges handled according to the graph setting.

Connect