map_dfs_back function

Apply a function to nodes in the reverse order of a depth first search