prim

minimum spaning tree
poj 1251