Write the code to perform Kruskal's MST in python.
Guidelines:
- Write the codes in python only.
- Refrain from any unfair means or plagiarism.
- The code should display authenticity.
- Use proper formatting and comments.
*Note: MST stands for Minimum Spanning Tree.
Write the code to perform Kruskal's MST in python.
Guidelines:
*Note: MST stands for Minimum Spanning Tree.