Skip to content

Commit ad6dbfa

Browse files
authored
Merge pull request #28 from Mathics3/NetworkX-3
Network x 3
2 parents 4b376e2 + 68d7a4c commit ad6dbfa

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ jobs:
2323
python -m pip install --upgrade pip
2424
python -m pip install pytest
2525
# Can comment out when next Mathics core and Mathics-scanner are released
26-
python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
27-
git clone https://github.com/Mathics3/mathics-core
28-
(cd mathics-core && make)
29-
(cd mathics-core && python -m pip install -e .[full])
30-
# python -m pip install Mathics3[full]
31-
# python -m pip install -e .
26+
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
27+
python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
28+
(cd src/mathics3 && bash ./admin-tools/make-op-tables.sh)
3229
- name: install pymathics graph
3330
run: |
3431
make develop

pymathics/graph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
= -Graph-
2222
2323
>> ConnectedComponents[g]
24-
= {{4, 3}, {2}, {1}}
24+
= {{3, 4}, {2}, {1}}
2525
2626
>> WeaklyConnectedComponents[g]
2727
= {{1, 2, 3, 4}}

pymathics/graph/properties.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ class MultigraphQ(_NetworkXBuiltin):
254254
:Multigraph:
255255
https://en.wikipedia.org/wiki/Multigraph</url> test (<url>
256256
:NetworkX:
257-
https://networkx.org/documentation/networkx-2.8.8/reference/classes/multigraph.html</url>, <url>
257+
https://networkx.org/documentation/networkx-2.8.8/reference/classes/multigraph.html</url>, \
258+
<url>
258259
:WMA:
259260
https://reference.wolfram.com/language/ref/MulitGraphQ.html</url>)
260261
@@ -404,15 +405,15 @@ def eval(self, graph, expression, evaluation: Evaluation, options: dict):
404405

405406
class SimpleGraphQ(_NetworkXBuiltin):
406407
"""
407-
Simple (not multigraph)<url>
408+
Simple (not multigraph) <url>
408409
:graph:
409410
https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)#Graph
410411
</url> test (<url>
411412
:WMA:
412413
https://reference.wolfram.com/language/ref/SimpleGraphQ.html</url>)
413414
414415
<dl>
415-
<dt>'LoopFreeGraphQ'[$graph$]
416+
<dt>'SimpleGraphQ'[$graph$]
416417
<dd>True if $graph$ is a 'Graph', loop-free and each pair of \
417418
vertices are connected at most by a single edge.
418419
</dl>

pymathics/graph/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# well as importing into Python. That's why there is no
66
# space around "=" below.
77
# fmt: off
8-
__version__="6.0.1dev0" # noqa
8+
__version__="6.1.0dev0" # noqa

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read(*rnames):
3333
packages=find_namespace_packages(include=["pymathics.*"]),
3434
install_requires=[
3535
"Mathics3>=6.0.0",
36-
"networkx>=2.8.0",
36+
"networkx>=3.0.0",
3737
"pydot",
3838
"matplotlib",
3939
"scipy>=1.10.0",

0 commit comments

Comments
 (0)