For some reason, sorting both neighborList will result in undefined behavior and causes the Connected Components code to fail but without it and it works just fine. Weird.
I believe this has been resolved and was an issue where I did not specify the >, < and == relation and so when sorting it would use the default implementation of such operators.
For some reason, sorting both
neighborList
will result in undefined behavior and causes the Connected Components code to fail but without it and it works just fine. Weird.