RelationshipPredicate trigger = new RelationshipPredicate(relations[0], new SpecVar[] {new SpecVar("x"), new SpecVar("y")});
List<RelEffect> eff = new LinkedList<RelEffect>();
eff.add(RelEffect.createAddEffect(relations[1], new SpecVar[] {new SpecVar("x"), new SpecVar("x")}));
infEnv.addRule(new InferredRel(trigger, eff));
trigger = new RelationshipPredicate(relations[1], new SpecVar[] {new SpecVar("x"), new SpecVar("x")});
eff = new LinkedList<RelEffect>();
eff.add(RelEffect.createAddEffect(relations[0], new SpecVar[] {new SpecVar("x"), new SpecVar("x")}));
infEnv.addRule(new InferredRel(trigger, eff));
RelationshipPredicate find = new RelationshipPredicate(relations[1], new SpecVar[] {new SpecVar("a"), new SpecVar("a")});
Substitution sub = new Substitution();
sub = sub.addSub(new SpecVar("a"), labels[0]);