[graph-tool] How to perform edge contraction?