int indexOf = data.lhs.indexOf(aL);
Agent aR = data.rhs.get(indexOf);
result = data.rgArrays[indexOf] = new RuleGraph(new SiteNode(aL, aR));
data.q.add(pairOf(aL, data.rgArrays[indexOf]));
} else {
result = new RuleGraph(new BondNode());
int i=0;
i = data.lhs.indexOf(bondA);
RuleGraph r1 = data.rgArrays[i] = new RuleGraph(new Node(reverse ? data.rhs.get(i) : bondA));
result.addChild(new Link("1",siteA.getName()), r1);