Skip to main content

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())

Release files for zero-divisor-graph 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zero-divisor-graph 1.0.0
File Size Uploaded
zero-divisor-graph-1.0.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zero-divisor-graph 1.0.0
File Interpreter ABI Platform
zero_divisor_graph-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / zero-divisor-graph-1.0.0.tar.gz

Download URL zero-divisor-graph-1.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
820a27be0fcf244e7a6a27952679f067f7a7fe7f5563a63d9837c19973b8a6ed
BLAKE2b-256 checksum
How to use checksums
93f1772ea90a063eda1724e42551f89b19f522859ae59806082b4db809058e11
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / zero_divisor_graph-1.0.0-py3-none-any.whl

Download URL zero_divisor_graph-1.0.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b11f4dd54a165494f52a1ccd4af855ab109ce6322bb6fb93c869391949701ca6
BLAKE2b-256 checksum
How to use checksums
724bee63ebe24aae9d0b6a26246d3ca3bab2b11e92e9446ca09fedf34bb2214f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page