public void draw(Graphics2D g, Color color) {
		drawHandle(g);
		if (ndFrom == null || ndTo == null || ndTo.getFrom() == null) {
			drawLine(g, from.getXY(), from.getDirectP());
			drawLine(g, to.getDirectP(), to.getXY());
			drawLine(g, from.getDirectP(), to.getDirectP());
			return;
		}
		drawLine(g, from.getXY(), from.getDirectP());
		drawLine(g, to.getXY(), to.getDirectP());
		Node crt = ndTo;
		Node last = null;
		while (crt != null && !crt.equals(ndFrom)) {
			if (last != null) {
				g.drawLine(last.getP().x, last.getP().y, crt.getP().x, crt
						.getP().y);
			}
			last = crt;
			crt = crt.getFrom();
		}
		if (crt != null)
			g
					.drawLine(last.getP().x, last.getP().y, crt.getP().x, crt
							.getP().y);
	}