Both trials involved at least one black or Hispanic defendant charged with attacking a white victim.
That accounted for 300 extra prison sentences a year for black and Hispanic defendants, the study said.
Most of them are Hispanic defendants or, like Mr. Graham, black.
The reports, released last week, said that black and Hispanic defendants often received tougher sentences than whites.
Some of them say the prosecutors are framing the Hispanic and black defendants.
One of the charges against the judge was that he made ethnically derogatory comments to five Hispanic defendants.
The city's new Criminal Justice Coordinator, former Justice Milton Mollen, said the disproportionate number of black and Hispanic defendants troubled him, too.
Of about 50 people who have been the targets nationwide, 80 percent have been black or Hispanic defendants.
In addition to the 25 cases involving black or Hispanic defendants, one other case was also put on hold by the Attorney General's office.
In a case with a Hispanic defendant, there were six blacks, including one of Hispanic origin, and six whites.