Breadth first traversal of graphs stored in adjacency matrix

From , 3 Years ago, written in C, viewed 227 times.
URL https://pastebin.vip/view/5a1e3a5a
  1. void BFSTraverseAL ( MGraph *G )
  2. {/*广度优先遍历以邻接矩阵存储的图G*/
  3.         int i;
  4.         for ( i=0; i<G->n; i++ )
  5.                 visited[i]=FALSE; /*标志向量初始化*/
  6.         for ( i=0; i<G->n; i++ )
  7.                 if ( !visited[i] ) BFSM ( G,i ); /* vi 未访问过,从vi 开始BFS 搜索*/
  8. }/*BFSTraverseAL*/

Reply to "Breadth first traversal of graphs stored in adjacency matrix"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website