代码如下://———图的邻接表存储表示——-
#include<stdio>#include<stdlib>
#define MAX_VERTEXT_NUM 20
typedef int InfoType;typedef char VertextType;
typedef struct ArcNode{ int adjvex; struct ArcNode *nextArc; InfoType *info;}ArcNode;
typedef struct VNode{ VertextType data; ArcNode *firstArc;}VNode,
- 1
- 2
前往页