Also refresh edges when pasting a node