Less returns true if node i is less than node j.
(i, j int)
| 55 | |
| 56 | // Less returns true if node i is less than node j. |
| 57 | func (x NodeKeys) Less(i, j int) bool { return x[i].Less(&x[j]) } |
| 58 | |
| 59 | // Swap exchanges nodes i and j. |
| 60 | func (x NodeKeys) Swap(i, j int) { x[i], x[j] = x[j], x[i] } |