#include<stdio.h>
#include<iostream.h>
#define MaxInt 32767
#define MVNum 100
#define OK 1
typedef char VerTexType;
typedef int Status;
typedef struct ArcNode//边表
{
int adjvex;
struct ArcNode *nextarc;
}ArcNode;
typedef struct VNode//表头结点表
{
VerTexType data;
ArcNode *firstarc;
}VNode,AdjList[MVNum];
typedef struct//图的基本数据
{
AdjList vertices;
int vexnum,arcnum;