Code example for PriorityQueue

Methods: poll

	//This removes and returns the head of the queue 
	public Vertex remove(){ 
		return pQueue.poll(); 
	//Look at the first value without removing 
	public Vertex peek(){ 
		return pQueue.peek(); 
	public boolean hasMore(){ 
		return !pQueue.isEmpty(); 
	//Have the queue reassess the position of a vertex in the graph 
	public void update(Vertex changeV){ 
Connect your IDE to all the code out there  Get Codota for Java