cityflow-project / CityFlow

A Multi-Agent Reinforcement Learning Environment for Large Scale City Traffic Scenario
https://cityflow-project.github.io
Apache License 2.0
785 stars 173 forks source link

maybe there's something wrong with dijakstra in router.cpp? #145

Closed maranlll closed 1 year ago

maranlll commented 2 years ago

in router.cpp line 182

double curDis = dis.find(curRoad)->second;
dis[curRoad] = curDis;

curDis should be got from queue, not from dis(map). The code now just get the dis from the map, and set thje map use the information got from it.

now i understand, this two lines is needless........