()
| 23 | type PQueue []PQueueNode |
| 24 | |
| 25 | func (pq PQueue) Len() int { return len(pq) } |
| 26 | func (pq PQueue) Less(i, j int) bool { return pq[i].Priority < pq[j].Priority } |
| 27 | func (pq PQueue) Swap(i, j int) { pq[i], pq[j] = pq[j], pq[i] } |
| 28 |
no outgoing calls