利用c++实现最小生成树的各种算法! #include #include #define maxlen 10 #define large 999 typedef struct { int vexnum; char vexs[maxlen]; int arcs[maxlen][maxlen]; }graph; void init_graph(graph *g) { int i=0,j=0; g->vexnum=5; for(i=0;ia