Firstly, I suggest, you should go as per the doctor’s advice who did the surgery. Secondly, it is always advisable to go for exercises under the supervision of a physiotherapist. Since you have mentioned there is swelling, The therapist will guide you gradually.
For such surgeries, the best way is a slow supervised approach and move to a vigorous approach only as per your clinical evaluation.