Skip to main content

a library for working with zero divisor graphs of commutative semigroups

Project description

Zero Divisor Graph math library

This is a pure python library for working with zero divisor graphs of commutative semigroups. The primary purpose is to automate the task of checking if a given graph is a zero divisor graph and for what possible semigroups.

Installation

pip3 install zero-divisor-graph

You can also retrieve from source at https://github.com/Paulcappaert/zero-divisor-graph

use

first start python3 in a terminal window and import the ZeroDivisorGraph object

python3
>>> from zdg.zdg import ZeroDivisorGraph as ZDG

You can create a zero divisor graph from edges as such. the vertices can be named whatever you want.

>>> example1 = ZDG((1, 2), (2, 3))
>>> example2 = ZDG(('a', 'b'), ('b', 'c'))

You can print all of the semigroups from a zero divisor graph as such

>>> semigroups = example1.semigroups()
>>> for s in semigroups:
...   print(s.caley_table())

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

zero-divisor-graph-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

zero_divisor_graph-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file zero-divisor-graph-1.0.0.tar.gz.

File metadata

  • Download URL: zero-divisor-graph-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for zero-divisor-graph-1.0.0.tar.gz
Algorithm Hash digest
SHA256 820a27be0fcf244e7a6a27952679f067f7a7fe7f5563a63d9837c19973b8a6ed
MD5 c21809d6d401961d82116e68dbabc1f4
BLAKE2b-256 93f1772ea90a063eda1724e42551f89b19f522859ae59806082b4db809058e11

See more details on using hashes here.

File details

Details for the file zero_divisor_graph-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: zero_divisor_graph-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for zero_divisor_graph-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b11f4dd54a165494f52a1ccd4af855ab109ce6322bb6fb93c869391949701ca6
MD5 a3c464842b6ba91a2552e7955ba5f10f
BLAKE2b-256 724bee63ebe24aae9d0b6a26246d3ca3bab2b11e92e9446ca09fedf34bb2214f

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