PRIM
INT
UNDIRECTED
5
1
2
3
4
5
8
1 2 8
1 3 4
1 4 6
1 5 2
2 3 9
2 5 5
3 4 7
4 5 3
1