(seed = 219031)
Consider the following edge-weighted graph with 10 vertices and 17 edges.
v-w weight
-----------
A-B 16
F-A 12
G-A 1
C-B 11
G-B 2
D-C 14
C-G 9
C-H 7
C-I 3
I-D 13
J-D 5
E-D 4
E-J 10
F-G 15
G-H 17
I-H 6
I-J 8
Here is a graphical representation of the same graph:
(A)------16-----(B)------11-----(C)------14-----(D)------4------(E)
|\ | /|\ |\ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
12 1 2 9 7 3 13 5 10
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \ | / | \ | \ |
| \|/ | \| \|
(F)------15-----(G)------17-----(H)------6------(I)------8------(J)
Give the sequence of edges in the MST in the order that Prim's algorithm adds them to the MST,
when starting Prim's algorithm from vertex C. To specify an edge, use its weight.