www.pudn.com > RegextoDFA.rar > EdgeVertex.h, change:2009-09-19,size:458b


///////////////////////////////////////////////// 
#ifndef EDJEVERTEX_H 
#define EDJEVERTEX_H 
#define NULL 0 
// 定义邻接表的边表类 
class Edge 
{ 
public: 
	int number; 
	int position; 
	char weight; 
	Edge *link; 
	Edge(); 
	Edge(int num, int pos, char ch); 
}; 
 
 
///////////////////////////////////////////////// 
 
// 定义邻接表的顶点类 
class Vertex 
{ 
public: 
	int number; 
	Vertex *next; 
	Edge *out; 
	Vertex(); 
	Vertex(int num); 
}; 
 
#endif