• 2024-12-29bfs
    includeincludeincludeusingnamespacestd;defineV_NUM5boolvisited[V_NUM];intG[V_NUM][V_NUM];queueQ;voidvisite(intv){printf("%d",v);}voidG_init(){G[0][1]=1;G[0][2]=1;G[1][0]=1;G[1][3]=1;G[2][0]=1;G[2][3]=1;G[3][1]=1;G[3