remove stray resize of maxCosts which seems to have been (wrongly) used to init all values of maxCosts to 0 (they are already zero via construction in line 33). Probably a refactoring gone wrong. Fixes #48.

This commit is contained in:
Patrick Brosi 2023-10-11 12:42:02 +02:00
parent c27f8a852f
commit 1c459816de

View file

@ -36,7 +36,6 @@ std::map<size_t, EdgeListHops> RouterImpl<TW>::route(
for (size_t nid = 1; nid < trie->getNds().size(); nid++) { for (size_t nid = 1; nid < trie->getNds().size(); nid++) {
costsDAG[nid].resize(ecm.at(nid).size(), DBL_INF); costsDAG[nid].resize(ecm.at(nid).size(), DBL_INF);
predeDAG[nid].resize(ecm.at(nid).size(), NO_PREDE); predeDAG[nid].resize(ecm.at(nid).size(), NO_PREDE);
maxCosts.resize(ecm.at(nid).size(), 0);
} }
std::stack<size_t> st; std::stack<size_t> st;