def get_greatest_depth(germanet, category) -> int:
    """
    Iterate trough the synsets of a given word category. For each synset check the depth and return the greatest depth
    that has been seen.
    :type category: WordCategory
    :type germanet: Germanet
    :param germanet: the germanet graph
    :param category: the wordcategory
    :return: the greatest depth for a given word category. The depth of a synset is defined by the shortest
    path length
    between the synset and the root node
    """
    synsets = germanet.get_synsets_by_wordcategory(category)
    max_depth = 0
    for synset in synsets:
        depth = synset.min_depth()
        if depth >= max_depth:
            max_depth = depth
    return max_depth