def get_max_length(graphs):
    """ Get the max length among sequences. """
    max_length = 0
    for cascade_id in graphs:
        # traverse the graphs for max length sequence
        for sequence in graphs[cascade_id]:
            max_length = max(max_length, len(sequence[0]))
    return max_length