merge/split now works with edges connected to root.