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: 5.0.0, Mathics 6.0.0
on CPython 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0]
using SymPy 1.9, mpmath 1.2.1, numpy 1.21.5
matplotlib 3.5.2,
Asymptote version 2.81

Copyright (C) 2011-2023 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 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 is the matplotlib graph for BinomialTree[3] in the session above.

See the screenshot directory the other graphs.

Installation

From pip:

$ pip install pymathics-graph

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_graph-9.0.0.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

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

mathics3_graph-9.0.0-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

Details for the file mathics3_graph-9.0.0.tar.gz.

File metadata

  • Download URL: mathics3_graph-9.0.0.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mathics3_graph-9.0.0.tar.gz
Algorithm Hash digest
SHA256 d1ebd55cfb146536247c69553ce11655c903123ba818bea38f9fbc9e1edcf849
MD5 134a11fa61016bf085fc981c015a1f10
BLAKE2b-256 7deb70bc3cb0aa3a96829d3e548c55b3a4af300abb2e2faf00b90df76a96119a

See more details on using hashes here.

File details

Details for the file mathics3_graph-9.0.0-py3-none-any.whl.

File metadata

  • Download URL: mathics3_graph-9.0.0-py3-none-any.whl
  • Upload date:
  • Size: 53.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mathics3_graph-9.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b7f348d6a1faabc52ce4a1357875c332bf736bcf446ead8e17ed1094442d216
MD5 f60fb1790307e1203c4e59232f7b884c
BLAKE2b-256 6f57c37c250159dc539fcacb61755a528ea835d77cbb861ede730d6ffeb34530

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