'If the terminal belongs to the external Node, return the corresponding internal terminal'

def internalTerminal(self, term):

    if (term.node() is self):
        if term.isInput():
            return self.inputNode[term.name()]
        else:
            return self.outputNode[term.name()]
    else:
        return term
