Added docstrings for _map_nodes