public void setTreeHeuristics (TrieNode node) throws Exception {
		if (!node.isRoot()){
			throw new Exception("calcHeuristic must be run on root node");
		}
		node.setHeuristic(0);
		for (TrieNode child : node.getChildren().values()) {
			calcHeuristic(child);
		}
	}