def addEdgeMI(em_dict, edge, value):
    """
    Add motif information to edge dictionary.
    
    Input:
        em_dict:    (dictionary) the dictionary of edge motif degree
        edge:       (int) the id of edge
        value:      (int) the change value of edge
    Output:
        em_dict:   (dictionary) changed edge motif degree dictionary
    """
    if edge not in em_dict.keys():
        em_dict[edge] = value + 1
    else:
        em_dict[edge] += value
    
    return em_dict