邻接矩阵定义:
typedef struct{char vex[N];int weight[N][N];int vexnum,arcnum;
}MGraph;
邻接链表定义:
#difine N 8typedef struct ArcNode{int vexIndex;int weight;struct ArcNode *next;
}ArcNode;
typedef struct VNode{char data;ArcNode *first;
}VNode;
typedef struct{VNode vex[N];int vexnum,arcnum;
}ALGraph;