added minimum weighted spanning tree