def _is_file_relevant(file_name: str, problem_name: str, graph_type: str, p_depth: int):
    """Check if a filename provided matches the description of a problem instance."""
    return problem_name in file_name and "p=" + str(p_depth) in file_name and graph_type in file_name