221222223224225226227228229230231
private NewGraphComparer getComparer(boolean areLossy, boolean idsPreserved) { if (areLossy) { return new LossyComparer(); } else if (! idsPreserved) { return new IdsNotPreservedComparer(); } else { return new IdsPreservedComparer(); }