Contracts the edge keep — merge: merge disappears and its edges move to keep. Loops are dropped and parallel edges keep the first weight. Throws if the edge is absent.
keep — merge
merge
keep
Contracts the edge
keep — merge:mergedisappears and its edges move tokeep. Loops are dropped and parallel edges keep the first weight. Throws if the edge is absent.