6.2.1邻接表示法
#include <stdio.h>
#include <cmath>
#define MaxVertexNum 100
#define INF INFINITYtypedef char VertexType;
typedef int EdgeType;
typedef struct{VertexType Vex[MaxVertexNum];EdgeType Edge[MaxVertexNum][MaxVertexNum];int vexnum,arcnum;
}Mgraph;
2026/7/3 1:12:53