Prim algorithm, and nothing else.