Include Kruskal's algorithm in main.js