public void drawPath(List<Edge> path, Graphics g) {
			for (Edge temp : path) {
				Set<Node> XY = temp.getAdjacent();
				Iterator<Node> it = XY.iterator();
				Coordinates node1Coords, node2Coords;
				Node node1 = it.next();
				node1Coords = node1.getCoordinates();
				int node1X = (node1Coords.col * wallSize) + padding + finalFormatX;
				int node1Y = (node1Coords.row * wallSize) + padding + finalFormatY;
				Node node2 = it.next();
				node2Coords = node2.getCoordinates();
				int node2X = (node2Coords.col * wallSize) + padding + finalFormatX;
				int node2Y = (node2Coords.row * wallSize) + padding + finalFormatY;

				g.setColor(Color.MAGENTA);

				if (Math.abs(node1Coords.col - node2Coords.col) <= 1
						&& Math.abs(node1Coords.row - node2Coords.row) <= 1) {
					g.drawLine(node1X, node1Y, node2X, node2Y);
				}
			}
		}