題組內容

三、一個圖(graph)的五個邊(edge)依序輸入如下:(20 分) A, B A, D A, E D, E E, F

⑵以 A 為起點,利用佇列(queue),依字母序,做廣度優先搜尋(breadth-first search),寫出搜尋結果。