@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2d = (Graphics2D) g;

		g2d.setStroke(new BasicStroke(lineWidth));
		g2d.setColor(Color.BLACK);

		for (Vertex v1 : graph.getVertices()) {
			for (Vertex v2 : graph.getVertices()) {
				if (v1.getNeighbors().contains(v2)) {
					g2d.drawLine(sideWidth + v1.getX(), sideWidth + v1.getY(),
							sideWidth + v2.getX(), sideWidth + v2.getY());
				}
			}
		}

		for (Vertex node : graph.getVertices()) {
			g2d.setColor(Color.RED);
			g2d.fillOval(sideWidth - nodeRadius / 2 + node.getX(), sideWidth
					- nodeRadius / 2 + node.getY(), nodeRadius, nodeRadius);
			g2d.setColor(Color.BLACK);
			g2d.drawOval(sideWidth - nodeRadius / 2 + node.getX(), sideWidth
					- nodeRadius / 2 + node.getY(), nodeRadius, nodeRadius);

		}

	}