[graph-tool] Merging vertices for renormalization