Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. auto iterator = tabuList.begin();
  2. while (iterator != tabuList.end()) {
  3. if (neighborhoodCities.first == iterator->first.second ||
  4. neighborhoodCities.second == iterator->first.first) {
  5. if (neighborhoodCost > length) {
  6. return false;
  7. }
  8. }
  9. iterator++;
  10. }
  11. return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement