最小生成樹(普利姆算法)

源代碼: #include<stdio.h> #include<stdlib.h> #define MVNum 100 //最大頂點數 #define INFINITY 32767 //表示權值很大,意味着兩個頂點之間沒有連接 typedef char VerTexType; //定義數據類型 typedef int ArcType; typedef struct { VerTexType vex
相關文章
相關標籤/搜索