Example Of Dfs Algorithm Python Template Pattern