The D-backs have now won five in a row for the second time in this young season.
"What a great series for us," said Melvin. "They did it to us over there, so to come back and beat them in three close games with timely hitting, good pitching performances and playing well at the end felt really good."
Like he has for most of the month, Orlando Hudson came through when it counted for the D-backs.
Hudson, who has reached base via hit or walk in every game this season, came up with the bases loaded and one out in a 3-3 ballgame in the seventh.
The switch-hitting Hudson, swinging from the left side against Giants starter Matt Morris (3-1), fought off a 1-1 pitch the other way directly down the left-field line to drive in two and give the team a lead it would not relinquish.
"He's been huge for all us all year," said Melvin. "Obviously, he's not as hot as he was early in the season, but he's still squaring balls up. In that situation when you have your big boys coming up, you need to hit with runners in scoring position, and we did today."
"I was just trying to put the ball in play. That's it," said Hudson, who also drove in a run with a single in the third to give the D-backs the lead at the time.
Randy Johnson made his second start of the season and threw 98 pitches, showing much better control than his first outing and lasting into the sixth, leaving in a tie ballgame. He allowed three runs --two earned -- in his outing, walking one and striking out five.
"He had to come out [after six]," said Melvin. "He was gassed. He battled about as well as you could battle. He might have gotten squeezed a hair. The only pitch I think he'd like to have back was that 3-2 slider to Ray Durham."
Durham took Johnson deep on a 3-2 pitch in the sixth for a solo homer that tied the game.
The D-backs remained a perfect 10-0 when holding a lead after seven innings, but with Major League saves co-leader Jose Valverde unavailable after working for three straight days, the team needed to turn to other options in the bullpen to close this one out.
Brandon Medders (1-0) worked a scoreless inning in the seventh, and Tony Pena was called upon to protect a two-run lead in the eighth. However, Durham -- after leaving eight men on base Friday night -- came through with an RBI single to bring the Giants within a run before Pena got pinch-hitter Mark Sweeney to fly out to end the inning.
Brandon Lyon was called upon to close it out in the ninth, but it was not without some anxious moments.
With one out and the bases clean, Barry Bonds entered the game as a pinch-hitter, and though he was not officially walked intentionally, for all intents and purposes, that's exactly what happened as Lyon threw four pitches well out of the strike zone.
"Apparently," joked Melvin. "It wasn't an intentional walk to an extent."
The Giants were then able to load the bases with one out, and for the third game in a row, they had the tying run on base in the ninth.
However, for the third game in a row they were unable to push it across, as Lyon picked up his first save of the season with two popouts to finish the sweep, with each game being decided by a single run.