【文件属性】:
文件名称:数据结构_图的基本运算代码
文件大小:74KB
文件格式:DOC
更新时间:2015-12-20 15:50:12
数据结构 图 基本运算 代码
#include"MGraph.h"
#define INFTY 1000
template
struct ENode
{
ENode()
{nextArc=NULL;}
ENode(int vertex,T weight,ENode *next)
{
adjVex=vertex;
w=weight;
nextArc=next;
}
int adjVex;
T w;
ENode* nextArc;
};