public void delete() {
        for (OVLine l : lines_) {
            l.delete();
        }
        lines_.clear();
        for (SlotInterface s : connections_) {
            if (s instanceof InNode) {
                if (((InNode) s).getLine(this) != null) {
                    ((InNode) s).getLine(this).delete();
                }
            }
            s.deconnect(this);
        }
        parent_ = null;
        connections_.clear();
    }