"""simple docstring"""




_a   :	Any 					=     {'a': ['c', 'b'], 'b': ['d', 'e'], 'c': [], 'd': [], 'e': []}
_a   :	Any 					=     ['a', 'b', 'c', 'd', 'e']





def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: Union[str, Any]    ,_lowerCamelCase		: Optional[Any]    ,_lowerCamelCase		: Dict			) ->   int:
  _lowerCAmelCase		: List[Any]						    =  start
  # add current to visited
  visited.append(_lowerCamelCase			)
  _lowerCAmelCase		: Union[str, Any]						    =  edges[current]
  for neighbor in neighbors:
    # if neighbor not in visited, visit
    if neighbor not in visited:
      _lowerCAmelCase		: str						    =  topological_sort(_lowerCamelCase    ,_lowerCamelCase    ,_lowerCamelCase			)
    # if all neighbors visited add current to sort
  sort.append(_lowerCamelCase			)
  # if all vertices haven't been visited select a new one to visit
  if len(_lowerCamelCase			) != len(_lowerCamelCase			):
    for vertice in vertices:
      if vertice not in visited:
        _lowerCAmelCase		: List[Any]						    =  topological_sort(_lowerCamelCase    ,_lowerCamelCase    ,_lowerCamelCase			)
    # return sort
  return sort


if __name__ == "__main__":
     _a   :	Tuple 					=     topological_sort('a', [], [])
     print(sort)





"""simple docstring"""




from PIL import Image





def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: Image    ,_lowerCamelCase		: int			) ->   Image:
  _lowerCAmelCase		: Any						    =  (259 * (level + 255)) / (255 * (259 - level))

  def contrast(_lowerCamelCase		: int			) -> int:
    return int(128 + factor * (c - 128)			)

  return img.point(_lowerCamelCase			)


if __name__ == "__main__":
     # Load image
     with Image.open('image_data/lena.jpg') as img:
          # Change contrast to 170
          _a   :	str 					=     change_contrast(img, 170)
          cont_img.save('image_data/lena_high_contrast.png', format='png')




