I’m using batch() function on a list of graphs then unbatch() to retrieve the original list of graphs. Does the order remain the same?
Yes, unbatch
preserve original order.
Yes. However, g.edges()
doesn’t guarantee the edge orders. You could use g.all_edges(order='eid')
to force returning sorted edges based on edge id.