graph traversal of the display (c language curriculum design data structures tha...
代码说明:
图的遍历的演示(c 语言 数据结构课程设计题) /*定义图*/ typedef struct{ int V[M] int R[M][M] int vexnum }Graph /*创建图*/ void creatgraph(Graph *g,int n) { int i,j,r1,r2 g->vexnum=n /*顶点用i表示*/ for(i=1 iV[i]=i } /*初始化R*/ for(i=1 iR[r1][r2]=1 g->R[r2][r1]=1 scanf("%d,%d",&r1,&r2) } } -graph traversal of the display (c language curriculum design data structures that)/* definition of the map*/typedef s truct V (int int [M] R [M] [M]) int vexnum Graph/* create map*/void creatgraph (Graph* g, int n) (int i, j, r1, r2 g-
下载说明:请别用迅雷下载,失败请重下,重下不扣分!