From b23d56c5d323c9fd8d1bdd6a451889558515ade6 Mon Sep 17 00:00:00 2001
From: Romain BERNARD <30secondstodraw@gmail.com>
Date: Tue, 19 Mar 2024 18:16:48 +0100
Subject: [PATCH] refactor

---
 src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp b/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp
index 6213dc2..20dbf83 100644
--- a/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp
+++ b/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp
@@ -19,7 +19,7 @@
 //      - Reference value still valid after popping (otherwise, pop at the end, before adding new state)
 TransitStateContainer TransitShortestPathPrecompute::executeAlgorithm(const Graph& graph, int nodeIndex, int instant) {
     //Init container, priority queue and state variables
-    TransitStateContainer solutionsContainer{graph.getNodesVector().size()};
+    TransitStateContainer solutionsContainer{graph.getNbNodes()};
     std::priority_queue<TransitAlgorithmState> statePriorityQueue;
     statePriorityQueue.emplace(nodeIndex, instant,0, nodeIndex);
 
-- 
GitLab