public LinkedList<Node> getPathFromRoot() {
		LinkedList<Node> path = new LinkedList<Node>();
		Node n = this;
		while (n.getParent() != null) {
			path.addFirst(n);
			n = n.getParent();
		}
		return path;
	}