Changeset 8539 for branches/RoutePlanning/HeuristicLab.Algorithms.GraphRouting/3.3/PriorityQueues/BinHeap.cs
- Timestamp:
- 08/29/12 18:18:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RoutePlanning/HeuristicLab.Algorithms.GraphRouting/3.3/PriorityQueues/BinHeap.cs
r8527 r8539 92 92 while ((left < size - 1 && data[idx].Key.CompareTo(data[left].Key) != -1) || 93 93 (right < size - 1 && data[idx].Key.CompareTo(data[right].Key) != -1)) { 94 if ((right >= size - 1) || (data[ idx].Key.CompareTo(data[right].Key) == -1)) {94 if ((right >= size - 1) || (data[left].Key.CompareTo(data[right].Key) == -1)) { 95 95 Swap(left, idx); 96 96 idx = left;
Note: See TracChangeset
for help on using the changeset viewer.