Disconnects from the inputed node.  If there is a class provided, then
        only a particular type of connection will be removed
        
        :param      node | <XNode>
                    cls  | <subclass of XNodeConnection> || None
        
        :return     <int> | number of connections removed

def disconnectFrom( self, node, cls = None ):
        """
        Disconnects from the inputed node.  If there is a class provided, then
        only a particular type of connection will be removed
        
        :param      node | <XNode>
                    cls  | <subclass of XNodeConnection> || None
        
        :return     <int> | number of connections removed
        """
        count = 0
        for connection in self.connections(cls):
            if ( connection.inputNode() == node or \
                 connection.outputNode() == node ):
                connection.remove()
        return count