CalculateTSP failed on one and two-point routes


Library fails if you'd try to optimize route of one or two points. I get this error:

Specified argument was out of the range of valid values.
Parameter name: Cannot add customers with a negative index!

It is not a big deal, it is just an trivial edge case, but it would be nice if library would handle it properly.
Closed Nov 22, 2013 at 3:29 PM by xivk