code: def connectTo( self, node, cls = None ):
          
          if ( not node ):
              return
          
          con = self.scene().addConnection(cls)
          con.setOutputNode(self)
          con.setInputNode(node)
          
          return con
docs: Creates a connection between this node and the inputed node.
          
          :param      node | <XNode>
                      cls  | <subclass of XNodeConnection> || None
          
          :return     <XNodeConnection>