def check_json_keys(json_dict):
    """
    Checks if all required keys are set
    :param json_dict: dict parsed from json
    :return: True if required key are set
    """
    required_keys = ["command", "runtime", "weight", "actual_stretch", "graph_information"]
    required_graph_information = ["nodes", "edges", "directed", "weighted", "simple"]

    for key in required_keys:
        if key not in json_dict:
            return False

    for key in required_graph_information:
        if key not in json_dict["graph_information"]:
            return False

    return True