Skip to content

Commit fa50659

Browse files
authored
Merge pull request #31 from Mathics3/sort_connected_components
sort_connected_components
2 parents 8f1fe3c + 8d5f1da commit fa50659

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)