Hi erectile dysfunction
is related to low testosterone
levels but i think it is not related to testicular swelling.after the act.even then go for ultrasound
to rule out any pathological condition.
As erectile dysfunction is due to low testosterone levels go for supplementation of testosterone undeconate .once testosterone is normal use thrilpil one hour before act to cure erectile dysfunction