topologicalsort.h

来自「数据结构的拓扑排序算法」· C头文件 代码 · 共 18 行

H
18
字号
#include "iostream.h"
typedef int InfoType;
typedef int VertexType;
#define MAX_VERTEX_NUM 20
typedef struct ArcNode{
	int adjvex;
	struct ArcNode *nextarc;
	InfoType	*info;
}ArcNode;//表结点
typedef struct VNode{
	VertexType data;
	ArcNode	*firstarc;
}VNode,AdjList[MAX_VERTEX_NUM];//头结点
typedef struct{
	AdjList vertices;
	int vexnum,arcnum;
	int kind;
}ALGraph;

⌨️ 快捷键说明

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