Example Of Dfs Algorithm Python Template Pattern Router