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:
parent
c27f8a852f
commit
1c459816de
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue