private static String GetNearestNode(Map<String, Double> nodes, Set<String> visitedNodes) {
		double distance = Double.MAX_VALUE;
		String nearestNode = null;
		for (String nodeName : nodes.keySet()) {
			if (!visitedNodes.contains(nodeName) && nodes.get(nodeName) < distance) {
				nearestNode = nodeName;
				distance = nodes.get(nodeName);
			}
		}

		return nearestNode;
	}