priority queue
| Parameter | Type | Description |
|---|
PriortyQueue node
add a node to the PriorityQueue
| Parameter | Type | Description |
|---|---|---|
| data | ANY | data for the new node |
get the front of the PriorityQueue
remove the top node
delete a specific node
| Parameter | Type | Description |
|---|---|---|
| node | ANY | data of the Node to delete |
get a specific node
| Parameter | Type | Description |
|---|---|---|
| node | ANY | data of the Node to get |
change the priority of a specific node
| Parameter | Type | Description |
|---|---|---|
| node | ANY | data of the Node to change the priority of |
| priority | Number | the new priority |
get the size of the PriorityQueue
output an array representation of the PriorityQueue
enumerate over all nodes in the PriorityQueue
| Parameter | Type | Description |
|---|---|---|
| event | Function | event to run on all nodes in the PriorityQueue (takes node as a parameter) |
enumerate over all nodes in the PriorityQueue in reverse order
| Parameter | Type | Description |
|---|---|---|
| event | Function | event to run on all nodes in the PriorityQueue (takes node as a parameter) |