The adjacency list representation of a graph G , which has 7 vertices and 10 edges, is:
Fantastic news! We've Found the answer you've been seeking!
Question:
The adjacency list representation of a graph G, which has 7 vertices and 10 edges, is:
(a)Show the breadth-first search tree that is built by running BFS on graph G with the given adjacency list, using vertex a as the source.
(b)Indicate the edges in G that are NOT in the BFS tree in part (a) by dashed lines.
(c)Show the depth-first search tree that is built by running DFS on graph G with the given adjacency list, using vertex a as the source.
(d)Indicate the edges in G which are NOT in the DFS (c) by dashed lines.
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: