Skip to content

Commit

Permalink
sort_connected_components
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Aug 3, 2024
1 parent bd6a2d4 commit 8d5f1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymathics/graph/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def eval(
if graph.G.is_directed()
else nx.connected_components
)
components = [to_mathics_list(*c) for c in connect_fn(graph.G)]
components = [to_mathics_list(*sorted(c)) for c in connect_fn(graph.G)]
return ListExpression(*components)


Expand Down

0 comments on commit 8d5f1da

Please sign in to comment.