multihypergraph
##Description A simple python package for graph theory that supports multi-edges, hyper-edges, looped-edges and every other combination of these. This package is an exercise in defining statically-typed, functional implementations of graphs that have the following features:
- Each vertex of the graph is a characted. For example
'ab,bc,ac'"is a triangle graph with vertices{'a', 'b', 'c'}. - Multi-edges are allowed.
'ab,ab'is a valid graph. - Hyper-edges are allowed.
'abc'is a valid graph. - Self-loops are allowed.
'aa'is a valid graph. - Collapsed edges are allowed.
'aab'is a valid graph
Check out the wikipedia entries for Hypergraph and Multigraph. Think of this package as happy marriage between the two.
Installation
pip install multihypergraph
Features
- Almost all the code is functional.
- Mutability of data types is never used.
- All types are explicitly mentioned using static-typing (and checked courtesy
mypy). - The above mentioned feature makes it easier to reason mathematically about the code.
- The emphasis is on mathematical understanding and soundness rather than algorithmic efficiency.
- The top-level scripts are divided into
objects/andmorphisms/to emphasize the category-theoretic structure of multihypergraphs. - Functional programming allows us to write easy-to-decipher tests using
pytest.
Metadata
Release files for multihypergraph 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multihypergraph-0.0.1.tar.gz | 6.8 kB | Without provenance | Details for multihypergraph-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multihypergraph-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for multihypergraph-0.0.1-py3-none-any.whl |
Total release size: 28.3 kB
Release files / multihypergraph-0.0.1.tar.gz
| Download URL | multihypergraph-0.0.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
389ec203ebdb326f30157fb45345d7dc182eba57212ef67d205e5ae2f208a666
|
|
BLAKE2b-256 checksum How to use checksums |
688ac58a49ac7aaa7e924c592192740ad4e5fe276081bbff4bcb6722b8f0e7f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / multihypergraph-0.0.1-py3-none-any.whl
| Download URL | multihypergraph-0.0.1-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c202f753a81160e9381d5ac3363ca2dd8695a8992f8fa71dbabfe0062f7c8a3
|
|
BLAKE2b-256 checksum How to use checksums |
60f1c53afeec4bcbe0d2543909b5b1f3e5581c1972fe6d362a56855613e0bace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Security for multihypergraph 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.