結果 : how to implement depth first search in python