In a multigraph (a graph that may have several edges between two vertices), contracting an edge replaces and by a single vertex, keeps every other edge of or with its end moved to the new vertex, and removes the edges between and , which would become loops.
Computer Science · Glossário