

"""simple docstring"""





import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


_SCREAMING_SNAKE_CASE							:	str										=			logging.get_logger(__name__)

class      __a (   _a     ):

			"""simple docstring"""

			def __init__(				self  :       Optional[int]    ,	*lowercase_  :       Dict    ,	**lowercase_  :       Any    ):
								warnings.warn(
								    '''The class LevitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
								    ''' use LevitImageProcessor instead.'''    ,	__UpperCAmelCase    ,	)
								super().__init__(*__UpperCAmelCase    ,	**__UpperCAmelCase    )






"""simple docstring"""







def 	lowercase     (							A_    ,  A_			)-> list[tuple[int, int, int]]:
  '''simple docstring'''







  a		:						Union[str, Any] 				=     sorted(A_    ,  key=lambda A_			: edge[2]			)

  a		:						List[Any] 				=     list(range(A_			)			)

  def find_parent(A_			):
    if i != parent[i]:
      a		:						Dict 				=     find_parent(parent[i]			)
    return parent[i]

  a		:						Optional[Any] 				=     0
  a		:						Optional[int] 				=     []

  for edge in edges:
    a		:						List[str] 				=     find_parent(edge[0]			)
    a		:						int 				=     find_parent(edge[1]			)
    if parent_a != parent_b:
      minimum_spanning_tree_cost += edge[2]
      minimum_spanning_tree.append(A_			)
      a		:						Tuple 				=     parent_b

  return minimum_spanning_tree


if __name__ == "__main__":  # pragma: no cover
 __lowercase   ,				__lowercase          = list(map(int, input().strip().split()))
 __lowercase          = []

 for _ in range(num_edges):
  __lowercase   ,				__lowercase   ,				__lowercase          = (int(x) for x in input().strip().split())
  edges.append((nodea, nodea, cost))

 kruskal(num_nodes, edges)






