Even in death, State Assemblyman Bill Nojay, a Republican from the Rochester area who fatally shot himself in a city cemetery last week, seems likely to win the primary election for his seat on Tuesday. Rarely has a candidate died so close to Election Day. And even as political insiders and Mr. Nojay’s friends dissect his final days, trying to unravel the circumstances surrounding his suicide, his continued presence on the ballot has turned what was supposed to be a simple race into an Albany aberration born of an odd, little-noticed portion of the electoral rule book. Voters are being urged to cast their ballots for a dead man. Three men in a room are preparing to pick his political heir. The funeral has yet to be held, but the struggle to replace him is already on.