題組內容

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

⑴以 A 為起點,利用堆疊(stack),依字母序,做深度優先搜尋(depth-first search),寫出搜尋結果。