Skip to main content

Mathics3 Graph Module using NetworkX

Project description

PyPI Installs Latest Version Supported Python Versions

Mathics3 Graph Module using NetworkX and Matplotlib

Example Session

$ 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]

Screenshots

screenshot

The above is the matplotlib graph for BinomialTree[3] in the session above.

See the screenshot directory the other graphs.

Installation

From pip:

$ pip install Mathics3-Module-networkx

From git:

$ make develop  # or make install

Note:

Currently, this works well in mathicsscript but not in the Django interface, although graphs are created in a temporary directory, e.g., /tmp/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathics3_module_networkx-10.0.0.tar.gz (57.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mathics3_module_networkx-10.0.0-py3-none-any.whl (54.1 kB view details)

Uploaded Python 3

File details

Details for the file mathics3_module_networkx-10.0.0.tar.gz.

File metadata

File hashes

Hashes for mathics3_module_networkx-10.0.0.tar.gz
Algorithm Hash digest
SHA256 c3aed60faa91aeed958286647aec2dc44b7fb0e1e103184ba9677dd771ac26d7
MD5 6eca4ad99bd9d26c80058dbe261ce060
BLAKE2b-256 acc18f57b573abe58c9cb6a1dbb415f43582e4799de842b40dd146e8e7f513a9

See more details on using hashes here.

File details

Details for the file mathics3_module_networkx-10.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mathics3_module_networkx-10.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85a49ebd5170d64da7731726790cb226e644d5a99953888d98891a9406cf08f5
MD5 e374437344cec0f35ae3f06420f04753
BLAKE2b-256 7f818089d26dba20b61f7caa5f55b2d05afbefabfc1a68622459dd01e041a337

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page