CreateNewRouteTo
and InsertIntoExistingRoute
aren't The method:Optimize isn't working fine, because they add Incoming
and Outgoing
connections which isn't right.
The Incoming
It doesn't make sense to connect two randomly selected points and Outgoing
connections which addthen connect other points by these 2 methods break all the logic whentwo's GetCostOfWholeRoute
method is trying to calculate the cost of the whole routeIncommingConnection.