⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hed.h

📁 数据结构里关于图的邻接矩阵的建立
💻 H
字号:
typedef int InfoType;
#define MAXV 100

typedef struct 
{ int no;
InfoType info;
} VertexType;
typedef struct
{ int edges[MAXV][MAXV];
int vexnum,arcnum;
VertexType vexs[MAXV];
} MGraph;

typedef struct ANode
{ int adjvex;
struct ANode*nextarc;
} ArcNode;
typedef int Vertex;
typedef struct Vnode
{ Vertex data;
 ArcNode*firstarc;
} Vnode;
typedef Vnode Adjlist[MAXV];
typedef struct
{ Adjlist adjlist;
  int n,e;
} ALGraph;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -