Skip to content

Commit 5283e48

Browse files
committed
Make edge order reproducible between calls, see Technologicat#77
1 parent 350ea49 commit 5283e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyan/writers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def write_subgraph(self, graph):
5858

5959
def write_edges(self):
6060
self.start_edges()
61-
for edge in self.graph.edges:
61+
for edge in sorted(self.graph.edges, key=lambda x: (x.source.id, x.target.id)):
6262
self.write_edge(edge)
6363
self.finish_edges()
6464

0 commit comments

Comments
 (0)