for (int which = 0; which < 2; which++) {
if (inTailPt[which] == inHeadPt[which]) {
for (Iterator i = model.nodes(composite); i.hasNext();) {
Object node = i.next();
for (Iterator j = model.outEdges(node); j.hasNext();) {
Object edge = j.next();
Object tail = model.getTail(edge);
Object head = model.getHead(edge);
head = _getParentInGraph(head);
tail = _getParentInGraph(tail);