Prim's Algorithm Example
Prim's Algorithm finds a way to connect all nodes as a tree for the minimum total cost.