Carmelo Anthony had mostly been a bystander as Jeremy Lin went from the end of the Knicks' bench to the biggest story in sports.

New York won eight of nine games with Lin leading the way, and Melo nursing an injury that kept him out of action for the last seven of those games.

Anthony returned Monday night only to see Deron Williams and the Nets put a damper on all the excitement.

Williams scored a season-high 38 points and outplayed Lin, while Anthony slogged through his first outing in two weeks and New Jersey beat New York 100-92.

Lin scored 21 points, shooting 7 for 18 with nine assists. Not bad.

Anthony, however, struggled after missing seven games with a groin injury. The All-Star foward scored 11 points and went 4 for 11 from the field. He missed shots around the rim he usually finishes, had six turnovers — including a dribble off his foot — and even missed half of his six free throws.

New York fans have been worrying about whether Anthony's return would disrupt the Linsanity. This won't help ease their fears.

"My mindset was not try to come in and do too much. Try to fit in. Try to play my game within the system the way that they've been playing the last couple weeks," Anthony said.

Anthony's first basket came off a connection with Lin, setting a pick and popping out for a jumper. But the Knicks' offense went stagnant in the second quarter, and Williams took over the game in the third.

"I want Jeremy to have the ball. Hands down," Anthony said. "I want him to create for me. I want him to create for Amare (Stoudamire). I want him to create for everybody and still be as aggressive as he's been over the past two weeks. I want that."

Lin began his remarkable run against the Nets about two weeks ago, but Williams and the Nets were ready for him this time.

"I don't really watch too many games, but I do see Twitter, people tweet me and every, you know, three lines it was 'Jeremy Lin destroyed Deron Williams,'" Williams said. "So I definitely took offense to that in the first game and definitely, like I said, I had it circled."

Williams outscored Lin 36-11 through three quarters, when the Nets led by 18. The Knicks lost for the second time in 10 games since Lin's emergence against the Nets on Feb. 4.

"Obviously, Deron Williams going for 30-whatever he had is not going to get it done," Lin said. "So I needed to come out with more energy, the team needed to come out with more energy and I think at the end of the day, I think that's why the team lost."

Williams scored 18 in the third quarter, including 12 straight Nets points during one surge. Clearly amped up for the rematch — maybe too much so, because he fouled out with 3:07 left — he skipped across the court with three fingers in the air after burying a second straight 3-pointer during his blistering stretch.

"I don't think Deron Williams needs much of a prod," Knicks coach Mike D'Antoni said. "That's one of the best guards in the league. Jeremy still got 21 and nine. He had a great game, good game. Deron had a great game and that'll be that way sometimes. Again, I'm not big on the matchups just because it's a team thing and as a team we just didn't perform very well."

A Knicks offense that rang up 104 points against the defending champion Dallas Mavericks on Sunday shot only 40 percent against the Nets.

In addition to welcoming back Anthony, Baron Davis played his first game with the Knicks. The former All-Star point guard, relegated to Lin's backup now, had three points and an assist in just under 10 minutes.

And it was the second game for guard J.R. Smith, who signed with the Knicks after returning from a stint playing in China.

The Knicks found a winning formula with Lin. Now, D'Antoni has to tweak it without ruining it.

"We have to get this thing sorted," he said. "We have to figure out the type of team, the identity we have to have."

Anthony didn't seem too worried.

"As far as identity we've had last couple weeks, it was there," he said. "I don't think nothing is going to change.

"There's going to be an adjustment. New roles. New guys."

Notes: Knicks rookie Iman Shumpert sat out with a left knee injury and will be re-evaluated after the All-Star break. ... Nets C Brook Lopez, who just returned Sunday after breaking his foot in the preseason, sat out as part of the plan to not play him yet on back-to-back nights. ... The Knicks honored former coach Joe Lapchick, and players Nat "Sweetwater" Clifton and John Rucker as part of their "Pioneer Night: A Celebration In Black History." Clifton was the first African-American to play for the Knicks, though Rucker preceded him by two weeks in training camp in 1950, becoming the first African-American to wear the team's uniform.