public void removeNode(){
		ArrayList<Node> oldNodes=new ArrayList<Node>();
		ArrayList<Line> oldLines=new ArrayList<Line>();
		for(Node node:this.mindmap.getNodes())
			oldNodes.add(node);
		for(Line line:this.mindmap.getLines())
			oldLines.add(line);
		for(Node node:this.children)
			node.removeNode();
		this.mindmap.getNodes().clear();
		for(Node node:oldNodes){
			if(node==this)
				continue;
			this.mindmap.getNodes().add(node);
		}
		this.mindmap.getLines().clear();
		for(Line line:oldLines){
			if(line.getStart()==this || line.getEnd()==this)
				continue;
			this.mindmap.getLines().add(line);
		}
	}