MyNetwork is an instance of networkx.MultiDiGraph. I am wondering if it is guaranteed that several starts of the following code will lead to the same list containing all edges (along with the edge attributes) in MyNetwork:
AllEdges = [(from_node,to_node,edge_key,edge_attributes) for (from_node,to_node,edge_key,edge_attributes) in MyNetwork.edges(keys=True,data=True)]
Thanks for your kind reply.
source share