Description
Implement Kruskal's and Prim's algorithms for finding minimum spanning trees, and add verification logic to check if a student's submitted tree is a valid MST.
Tasks
Acceptance Criteria
- Both algorithms produce correct MSTs
- Verification correctly identifies valid/invalid MSTs
- Works with weighted graphs
- Handles edge cases (single node, disconnected components)
- Unit tests achieve >90% coverage