R[r1][r2]=1g->R[r2][r1]=1scanf("%d,%d",&r1,&r2)}}-graphtraversalofthedisplay(clanguagecurriculumdesigndatastructuresthat)/*definitionofthemap*/typedefstructV(intint[M]R[M][M])intvexnumGraph/*createmap*/voidcreatgraph(Graph*g,intn)(inti,j,r1,r2g--IMDN开发者社群-imdn.cn"> R[r1][r2]=1g->R[r2][r1]=1scanf("%d,%d",&r1,&r2)}}-graphtraversalofthedisplay(clanguagecurriculumdesigndatastructuresthat)/*definitionofthemap*/typedefstructV(intint[M]R[M][M])intvexnumGraph/*createmap*/voidcreatgraph(Graph*g,intn)(inti,j,r1,r2g- - IMDN开发者社群-imdn.cn">
登录
首页 » Windows核心 » graph traversal of the display (c language curriculum design data structures tha...

graph traversal of the display (c language curriculum design data structures tha...

于 2023-05-29 发布 文件大小:1.37 kB
0 56
下载积分: 2 下载次数: 1

代码说明:

图的遍历的演示(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-

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104298会员总数
  • 46今日下载