



"""simple docstring"""


def 				_lowerCAmelCase   (     lowercase_	,			lowercase_		):
						UpperCAmelCase    =				sorted(lowercase_	,			key=lambda lowercase_		: edge[2]		)

						UpperCAmelCase    =				list(range(lowercase_		)		)

						def find_parent(lowercase_		):
												if i != parent[i]:
																		UpperCAmelCase    =				find_parent(parent[i]		)
												return parent[i]

						UpperCAmelCase    =				0
						UpperCAmelCase    =				[]

						for edge in edges:
												UpperCAmelCase    =				find_parent(edge[0]		)
												UpperCAmelCase    =				find_parent(edge[1]		)
												if parent_a != parent_b:
																		minimum_spanning_tree_cost += edge[2]
																		minimum_spanning_tree.append(lowercase_		)
																		UpperCAmelCase    =				parent_b

						return minimum_spanning_tree


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

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

				kruskal(num_nodes, edges)










"""simple docstring"""


import warnings

from .generation import FlaxGenerationMixin







class    A_    (  SCREAMING_SNAKE_CASE_       ):



						"""simple docstring"""
						# warning at import time
						warnings.warn(
						    """Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will """
						    """be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."""			,     SCREAMING_SNAKE_CASE_			,     )





