def calculate_motif_distribution(eventgraph, normalize=True):
    """
    Calculate the motif distribution of an event graph

    Input:
        eventgraph (EventGraph):
        normalize (bool): [default=True]

    Returns:
        motifs (pd.Series):
    """
    return eventgraph.eg_edges.motif.value_counts(normalize=normalize)
