添加求解最小生成树的eager version prim algorithm