def num_events_in_event_dict(event_dict):
    """
    Given an event dict, returns number of events

    :param event_dict: Edge dictionary of events between all node pair. Output of the generative models.
    :return: (int) number of events
    """
    num_events = 0
    for _, event_times in event_dict.items():
        num_events += len(event_times)

    return num_events