SAN FRANCISCO (AP) — Kyle Wright earned his major-league leading 18th win, Dansby Swanson homered and drove in three runs, and the Atlanta Braves beat the San Francisco Giants 5-1 on Tuesday night to gain ground on the first-place New York Mets in the NL East.