def node_father(node, ontology):
    """
    Function for search the fathernode from a node.
    :param node: node problem
    :param ontology: a relational ontology
    :return: The node father.
    """
    for i in range(len(ontology)):
        if node in ontology[i]:
            return ontology[i][0]
        else:
            continue
