Skip to content

Commit 8d5f1da

Browse files
committed
sort_connected_components
1 parent bd6a2d4 commit 8d5f1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymathics/graph/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def eval(
6060
if graph.G.is_directed()
6161
else nx.connected_components
6262
)
63-
components = [to_mathics_list(*c) for c in connect_fn(graph.G)]
63+
components = [to_mathics_list(*sorted(c)) for c in connect_fn(graph.G)]
6464
return ListExpression(*components)
6565

6666

0 commit comments

Comments
 (0)