Mathics3 Graph Module using NetworkX and Matplotlib
$ mathicsscript
Mathicscript: 10.0.0, Mathics3 10.0.0
on CPython 3.14.3 (main, Mar 30 2026, 06:42:16) [GCC 13.3.0]
Using:
SymPy 1.13.3, mpmath 1.3.0, numpy 2.4.4
cython 3.2.4, matplotlib 3.10.8,
Asymptote version 2.95
Copyright (C) 2011-2026 The Mathics3 Team.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
See the documentation for the full license.
Quit by evaluating Quit[] or by pressing CONTROL-D.
In[1]:= LoadModule["pymathics.graph"]
Out[1]= pymathics.graph
In[2]:= BinomialTree[3]
In[3]:= BinomialTree[6]
In[4]:= CompleteKaryTree[3, VertexLabels->True]The above is the matplotlib graph for BinomialTree[3] in the session above.
See the screenshot directory the other graphs.
From pip:
$ pip install Mathics3-Module-networkx
From git:
$ make develop # or make install
Currently, this works well in mathicsscript but not in the Django interface, although graphs are created in a temporary directory, e.g., /tmp/.
