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