|
16 | 16 | ) |
17 | 17 | from mathics.core.attributes import A_PROTECTED, A_READ_PROTECTED |
18 | 18 | from mathics.core.builtin import AtomBuiltin, Builtin |
19 | | -from mathics.core.atoms import Atom, Integer, Integer0, Integer1, Integer2, String |
| 19 | +from mathics.core.atoms import Integer, Integer0, Integer1, Integer2, String |
20 | 20 | from mathics.core.convert.expression import ListExpression, from_python, to_mathics_list |
21 | 21 | from mathics.core.element import BaseElement |
22 | 22 | from mathics.core.evaluation import Evaluation |
23 | 23 | from mathics.core.expression import Expression |
24 | | -from mathics.core.keycomparable import IMAGE_EXPRESSION_SORT_KEY |
| 24 | +from mathics.core.keycomparable import IMAGE_EXPRESSION_ELT_ORDER |
25 | 25 | from mathics.core.pattern import pattern_objects |
26 | | -from mathics.core.symbols import Symbol, SymbolList, SymbolTrue |
| 26 | +from mathics.core.symbols import Atom, Symbol, SymbolList, SymbolTrue |
27 | 27 | from mathics.core.systemsymbols import ( |
28 | 28 | SymbolBlank, |
29 | 29 | SymbolCases, |
|
43 | 43 | SymbolUndirectedEdge, |
44 | 44 | ) |
45 | 45 |
|
46 | | -GRAPH_EXPRESSION_SORT_KEY = IMAGE_EXPRESSION_SORT_KEY + 1 |
| 46 | +GRAPH_EXPRESSION_ELT_ORDER = IMAGE_EXPRESSION_ELT_ORDER + 1 |
47 | 47 |
|
48 | 48 | WL_MARKER_TO_NETWORKX = { |
49 | 49 | "Circle": "o", |
@@ -217,7 +217,7 @@ def element_order(self) -> tuple: |
217 | 217 | # last for two graphs are structurally the same but different, so that |
218 | 218 | # the same graph object will appear consecutively in a Sort[]. |
219 | 219 | return ( |
220 | | - GRAPH_EXPRESSION_SORT_KEY, |
| 220 | + GRAPH_EXPRESSION_ELT_ORDER, |
221 | 221 | SymbolGraph, |
222 | 222 | len(self.vertices), |
223 | 223 | tuple(), |
@@ -410,7 +410,7 @@ def element_order(self) -> tuple: |
410 | 410 | # last for two graphs are structurally the same but different, so that |
411 | 411 | # the same graph object will appear consecutively in a Sort[]. |
412 | 412 | return ( |
413 | | - GRAPH_EXPRESSION_SORT_KEY, |
| 413 | + GRAPH_EXPRESSION_ELT_ORDER, |
414 | 414 | SymbolGraph, |
415 | 415 | len(self.vertices), |
416 | 416 | tuple(), |
|
0 commit comments