Carmelo Anthony scored 31 points in his return to the lineup, and the New York Knicks beat the Brooklyn Nets 100-86 on Wednesday night in the third meeting this season between the city rivals.