Code example for PriorityQueue

Methods: add

0
	/** 
	 * Adds a node to the set, will overwrite if duplicated 
	 * @param node 
	 */ 
	public void add(Node node) {
		set.add(node);
	} 
 
	/** 
	 * Checks if there are no nodes in the set 
	 * @return 
	 */ 
	public boolean isEmpty() { 
		return set.isEmpty();
	} 
 
	/** 
	 * Indicates that the given node is in the set 
	 * @param node 
	 * @return boolean value 
	 */