結果 : depth first search implementation in python