From b9bbc3700cabd5bfbfc57a087bd535dbf4035e86 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <30secondstodraw@gmail.com> Date: Thu, 14 Mar 2024 17:02:03 +0100 Subject: [PATCH] fix dominance check --- src/ShortestPath/Transit/TransitAlgorithmState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShortestPath/Transit/TransitAlgorithmState.h b/src/ShortestPath/Transit/TransitAlgorithmState.h index 3af927b..d069858 100644 --- a/src/ShortestPath/Transit/TransitAlgorithmState.h +++ b/src/ShortestPath/Transit/TransitAlgorithmState.h @@ -160,7 +160,7 @@ public: */ [[nodiscard]] bool strictlyDominates(const TransitAlgorithmState& rhs) const { return this->getNodeIndex() == rhs.getNodeIndex() - && this->getLastConnectionLine() == rhs.getLastConnectionLine() + && this->getLastConnectionLine().getLineId() == rhs.getLastConnectionLine().getLineId() // /*TODO : check */ && (this->getLastConnectionLine() == rhs.getLastConnectionLine() || this->getNbConnections() == 2) /***/ && ((this->getInstant() < rhs.getInstant() && this->getConnections().size() <= rhs.getConnections().size()) || (this->getInstant() == rhs.getInstant() && this->getConnections().size() < rhs.getConnections().size())); -- GitLab