Remove extended edges