src/PriorityQueue.php
private function swap(int $a, int $b)
    {
        $temp           = $this->heap[$a];
        $this->heap[$a] = $this->heap[$b];
        $this->heap[$b] = $temp;
    }
private function swap(int $a, int $b)
    {
        $temp           = $this->heap[$a];
        $this->heap[$a] = $this->heap[$b];
        $this->heap[$b] = $temp;
    }
private function swap ( int $ a , int $ b ) { $ temp = $ this -> heap [ $ a ] ; $ this -> heap [ $ a ] = $ this -> heap [ $ b ] ; $ this -> heap [ $ b ] = $ temp ; }
Swaps the nodes at two indices of the heap.

@param int $a
@param int $b
Swaps the nodes at two indices of the heap .