【題組】(5) Given the adjacency matrix of an undirected graph:Show the sequence of nodes that you visit
問題詳情
【題組】
(5) Given the adjacency matrix of an undirected graph:
Show the sequence of nodes that you visit by using breadth-first search and depth-first scarch. If there are multiple choices to select nodes, just follow the alphabetical order.