code: def setDirection(self, outputLocation, inputLocation):
          
          self.setOutputLocation(outputLocation)
          self.setInputLocation(inputLocation)
docs: Sets the output-to-input direction by setting both the locations \
          at the same time.
          
          :param      outputLocation      | <XConnectionLocation>
          :param      inputLocation       | <XConnectionLocation>