Code example for PriorityQueue

Methods: addremove

0
		return !pQueue.isEmpty(); 
	} 
	 
	//Have the queue reassess the position of a vertex in the graph 
	public void update(Vertex changeV){ 
		pQueue.remove(changeV); 
		pQueue.add(changeV); 
	} 
 
}