def map_edges(graph):
    """
    Mapping the edges of the graph to a symmetric edge list.
    :param g: Networkx graph.
    :return edges: Symmetric edge list.
    """
    edges = [edge for edge in graph.edges()]
    edges_rev = [[edge[1], edge[0]] for edge in edges]
    edges = [[edge[0], edge[1]] for edge in edges]
    edges = edges + edges_rev
    return edges