Skip to content
Snippets Groups Projects
Commit b9bbc370 authored by Romain BERNARD's avatar Romain BERNARD Committed by Romain BERNARD
Browse files

fix dominance check

parent f12c1ec8
No related branches found
No related tags found
1 merge request!1Transit algorithm implementation
......@@ -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()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment