Skip to content

Commit a2ac6bb

Browse files
committed
Track changes in mathics-core
1 parent 392fa61 commit a2ac6bb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

pymathics/graph/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
)
1717
from mathics.core.attributes import A_PROTECTED, A_READ_PROTECTED
1818
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
2020
from mathics.core.convert.expression import ListExpression, from_python, to_mathics_list
2121
from mathics.core.element import BaseElement
2222
from mathics.core.evaluation import Evaluation
2323
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
2525
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
2727
from mathics.core.systemsymbols import (
2828
SymbolBlank,
2929
SymbolCases,
@@ -43,7 +43,7 @@
4343
SymbolUndirectedEdge,
4444
)
4545

46-
GRAPH_EXPRESSION_SORT_KEY = IMAGE_EXPRESSION_SORT_KEY + 1
46+
GRAPH_EXPRESSION_ELT_ORDER = IMAGE_EXPRESSION_ELT_ORDER + 1
4747

4848
WL_MARKER_TO_NETWORKX = {
4949
"Circle": "o",
@@ -217,7 +217,7 @@ def element_order(self) -> tuple:
217217
# last for two graphs are structurally the same but different, so that
218218
# the same graph object will appear consecutively in a Sort[].
219219
return (
220-
GRAPH_EXPRESSION_SORT_KEY,
220+
GRAPH_EXPRESSION_ELT_ORDER,
221221
SymbolGraph,
222222
len(self.vertices),
223223
tuple(),
@@ -410,7 +410,7 @@ def element_order(self) -> tuple:
410410
# last for two graphs are structurally the same but different, so that
411411
# the same graph object will appear consecutively in a Sort[].
412412
return (
413-
GRAPH_EXPRESSION_SORT_KEY,
413+
GRAPH_EXPRESSION_ELT_ORDER,
414414
SymbolGraph,
415415
len(self.vertices),
416416
tuple(),

pymathics/graph/tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
22
Trees
33
"""
4+
45
import networkx as nx
5-
from mathics.core.atoms import Atom
66
from mathics.core.evaluation import Evaluation
7-
from mathics.core.symbols import SymbolConstant
7+
from mathics.core.symbols import Atom, SymbolConstant
88

99
from pymathics.graph.base import (
1010
DEFAULT_GRAPH_OPTIONS,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools", # CVE-2024-38335 recommends this
4-
"Mathics3>=9.0.0",
4+
"Mathics3>9.0.0",
55
"networkx>=3.0.0",
66
"matplotlib",
77
"Mathics3-Module-Base",

0 commit comments

Comments
 (0)