William Anderson of Oak Bluffs has graduated from the University of Massachusetts Lowell with a Bachelor of Science degree in mechanical engineering.