各位能帮帮忙用python来实现最小生成树嘛,两种算法都可以。
input是这样的然后output就是12,最小生成树的权重(weight of the minimum spanning tree)
谢谢各位,真的很需要。
请问,哪两种算法?