Clears all the connections for this node.
        
        :param      cls | <subclass of XNodeConnection> || None
        
        :return     <int> | number of connections removed

def clearConnections( self, cls ):
        """
        Clears all the connections for this node.
        
        :param      cls | <subclass of XNodeConnection> || None
        
        :return     <int> | number of connections removed
        """
        count = 0
        for connection in self.connections(cls):
            connection.remove()
            count += 1
        return count