def remote_edges(graph):
    """ Return remote edges

    Remote edges are not connected to anything
    :return: list of edge IDs that are remote
    """
    rm_edges = []
    for u, v in graph.edges():
        if len(list(graph.neighbors(u))) == 1 and len(list(graph.neighbors(v))
            ) == 1:
            rm_edges.extend(list(graph[u][v]))
    return rm_edges
