【釋
//
#define INFInity INT_MAX //最大值
#define MAX_VERTEX_NUM
TYPEDEF ENUM{dg
Typedef struct ArcCell{
VRType adj;
Infotype *info;
}ArcCell
typedef struct{
VertexType vexs[MAX_VERTEX_NUM];
AdjMarix arcs;
Int vexnum
GraphKind kind;
}Mgraph;
adjvex
data
//鄰接表存儲表示
#define MAX_Vertex_num
typedef struct ArcNode{
int adjvex;
struct ArcNode Inextarc;
Infotype info;
}ArcNode;
Typedef struct Vnode{
Vertextype data;
ArcNode *firstarc;
}Vnode
typedef struct{
Adjlist vertices;
Int vexnum
Int kind;
}ALGraph;
返回《數據結構》考研復習精編
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23290.html