private static Node getFatherNode(Node input) {
		if (nodeList.contains(input)) {
			return nodeList.get(nodeList.indexOf(input));
		} else {
			for (Node node : nodeList) {
				Node n = searchNode(node.father, input);
				if (n != null) {
					return n;
				}
			}
		}
		return input;
	}