def json_format_graph(graph_object, graph_identifier):
    """Creates a dictionary representing the edges in the graph and formats it in such a way that it can be encoded into JSON for comparing the graph objects between versions of GOcats."""
    json_dict = dict()
    for edge in graph_object.edge_list:
        json_dict[str(graph_identifier) + '_' + edge.json_edge[0]
            ] = edge.json_edge[1]
    return json_dict
