prims (A,E) (E,D) (D,C) (E,F) (B,C)
Starting with a single vertex in MST keep adding least weight edge vertex of ANY vertex in MST to MST.
kruskals (C,D) (E,D) (E,F) (B,C) (A,E)
(put all edges on priority queue - take off one by one and insert into tree
providing it doesn't make a cycle)
dijkstra
vertex set weight[a] weight[b] weight[c] weight[d] weight[e]
a 0 inf inf 7 inf
a d 0 9 12 7 inf
a d b 0 9 12 7 inf
a d b c 0 9 12 7 18
a d b c e 0 9 12 7 18
For any vertex v in Vertex set, weight[v] is the least cost path from source to v.