private void dominateLabels(RouteLabel newLabel, ArrayList<RouteLabel> activeLabels) {
		// For all existing labels
		for (RouteLabel oldLabel : activeLabels) {
			// if existing label has not been dominated (if so, dominater will have better chance of dominating)
			// and both labels end at same node
			if(!oldLabel.isDominated() && newLabel.getLastNode() == oldLabel.getLastNode()){
				int newCost = newLabel.getCost();
				int newRisk = newLabel.getRiskDistance();
				int oldCost = oldLabel.getCost();
				int oldRisk = oldLabel.getRiskDistance();
				// if old label has equal or better both cost and risk
				if(oldRisk <= newRisk && oldCost <= newCost){
					// dominate new label and stop looping
					newLabel.setDominated(true);
					break;
				// if new label has better either risk or cost and at least equal the other 
				} else if(newRisk <= oldRisk && newCost < oldCost || newRisk < oldRisk && newCost <= oldCost) {
					// dominate old label and continue
					oldLabel.setDominated(true);
				}
			
			}
		}
	}