matching.getNodesIn1().add(fgnode1);
boolean fgNodeInCrossGraph = false;
for (Iterator iterator = fgnode1.getGroundingMolecules().iterator(); iterator
.hasNext();) {
NonTerminalMolecule current = (NonTerminalMolecule) iterator
.next();
FunctionallyGroundedNode fgnode2 = getFgNodeWith(fgNodes2,
current);
if (fgnode2 != null) {
fgNodeInCrossGraph = true;
matching.getNodesIn2().add(fgnode2);
fgNodes22CrossGraphFgNodes.put(fgnode2, matching);
}
}
if (!fgNodeInCrossGraph) {
fgNodesOnlyIn1.add(fgnode1);
} else {
fgNodes12CrossGraphFgNodes.put(fgnode1, matching);
//TODO ensure later finalization
crossGraphFgNodes.add(matching);
}
}
for (Iterator<FunctionallyGroundedNode> iter = fgNodes2.iterator(); iter
.hasNext();) {
FunctionallyGroundedNode fgnode2 = iter.next();
boolean fgNodeInCrossGraph = false;
for (Iterator iterator = fgnode2.getGroundingMolecules().iterator(); iterator
.hasNext();) {
NonTerminalMolecule current = (NonTerminalMolecule) iterator
.next();
FunctionallyGroundedNode fgnode1 = getFgNodeWith(fgNodes1,
current);
if (fgnode1 != null) {
fgNodeInCrossGraph = true;