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.


pip3 install zero-divisor-graph

You can also retrieve from source at


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

>>> 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.

Files for zero-divisor-graph, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size zero_divisor_graph-1.0.0-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size zero-divisor-graph-1.0.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page