def E(G):
    """
    Returns a set of edges on a graph
    
    Parameters
    ----------
    G = A networkx graph.
    
    Returns
    -------
    
    set of edges belonging to graph graph

    """
    return set(G.edges())