@Override
    public void mouseReleased(MouseEvent click) {
        dragging = false;
        draggedComponente = null;
        if (draggedNodo != null) {
            for (int i = 0; i < components.getLength(); i++) {
                Componente component = components.get(i);
                List<Nodo> inpts = component.getRectEntradas();
                for (int j = 0; j < component.getInputs(); j++) {
                    Nodo entrada = inpts.get(j);
                    if (entrada.contains(click.getPoint())) {
                        addLink(entrada, draggedNodo);
                    }
                }

            }
            draggedNodo = null;
        }
        startPoint = null;
        lastPoint = null;
        repaint();
    }