Hemorrhoid surgery removes swollen blood vessels inside or around the anus and rectum. Doctors refer to these swollen ve