minWeightComponent

I think I did this correctly. Did it based upon the assumption that this
meant minimum spanning tree for only certain component. Not sure if it
works or not.