Construct a BFS-tree for the graph G of Fig. 7.5 with s as a SOurCe Vertex. Solution. The adjacency lists of G are adj[s] = {a, b, c, d), adj[a] = {s, b}, ...
確定! 回上一頁