cs215/unit05/prob02_different_paths_my.py: fixed to account for possibly multiple equal shortest hops