def checkedges(edge_list, e):
    """Function to check if the given edgelist matches.
           
           Attributes:
               edge_list (list): List of predicted edges.
               e (list): Original edge list

            Returns:
                bool: Boolean result to denoe if all the edges matches.
    """
    val = False
    for k in edge_list:
        if type(e) is tuple:
            if k[1] == e[1] and k[0] == e[0]:
                val = True
        else:
            for ee in e:
                if k[1] == ee[1] and k[0] == ee[0]:
                    val = True
    return val
