Simulation._shortest_paths: use set instead of dict ofr the Q set