Skip to content
Snippets Groups Projects
Commit fef9876e authored by Aaron's avatar Aaron
Browse files

explain the sorting criteria. it's odd thanks to STL PQ behavior.

parent af90cd9e
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,8 @@ public: ...@@ -60,6 +60,8 @@ public:
else if (this->coord < other.coord) { else if (this->coord < other.coord) {
return false; return false;
} }
// prefer ENDs to come before STARTS if the same coordinate.
// needed for stability of the -cluster algorithm.
else { else {
if (this->coord_type == END) { if (this->coord_type == END) {
return false; return false;
......
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