code: def iterate(matrix, expansion, inflation):
      
      # Expansion
      matrix = expand(matrix, expansion)
  
      # Inflation
      matrix = inflate(matrix, inflation)
  
      return matrix
docs: Run a single iteration (expansion + inflation) of the mcl algorithm
      
      :param matrix: The matrix to perform the iteration on
      :param expansion: Cluster expansion factor
      :param inflation: Cluster inflation factor