結果 : implement depth first search algorithm in python