結果 : depth first search implementation python