litmus: Correct a bug in generating custom affinity : There can be only one communication edge.