#include <stdio.h> #define INFINITY 1000 #define MAX_VERTEX_NUM 20 #define ERROR 0 #define OK 1 typedef enum{DG,DN,UDG,UDN} GraphKind; typedef int VRType; typedef int InfoType; typedef char VertexTpye; typedef int Status; typedef struct ArcCell { VRType adj;//该弧的权值 InfoType *info;//该弧相关信息的指针 } ArcCell,AdjMatrix[MAX_VERTEX_NUM][MAX_VERTEX_NUM]; typedef struct { char vexs[MAX_VERTEX_NUM]; AdjMatrix arcs; int vexnum,arcnum; GraphKind kind; }MGraph; PrintGraph(MGraph G) { int i,j; for(i=0;i<G.vexnum;i++) { for(j=0;j<G.vexnum ;j++) { if(G.arcs [i][j].adj!=0) { printf("%c--->%c %d/n",G.vexs[i],G.vexs[j],G.arcs[i][j]); } } } } main() { MGraph G; int i,j,k,w,IncInfo; char v1,v2; int LocateVertex(MGraph,VertexTpye); printf("please Enter into the number of Vertex Arc and Arc_information:/n"); scanf_s("%d,