group-diagram-combination
Enumerate connected ways to join selected components of several link factors.
Installation
pip install group-diagram-combination
Usage example
from group_diagram_combination import main
# Three factors with 2, 2, and 1 components; choose two joins.
methods = main([2, 2, 1], 2)
print(methods[0])
Algorithm
Each usable node is represented as [factor_index, component_index]. Candidate edges connect nodes from different factors. The algorithm enumerates edge subsets of the requested size and uses a disjoint-set union structure to reject subsets that do not connect every factor. For the composite-link generator the requested size is n - 1, so every accepted factor-level graph is a spanning tree.
Input conventions
A PD code is represented as a list of four-entry crossings. Arc labels normally occur exactly twice. Public functions validate inputs and return new values rather than mutating caller-owned data unless their API explicitly says otherwise.
External software
No external software is required.
Development
Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
poetry check
poetry build
License
MIT. See LICENSE.
Metadata
Release files for group-diagram-combination 0.1.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 |
|---|---|---|---|---|
| group_diagram_combination-0.1.1.tar.gz | 2.7 kB | Without provenance | Details for group_diagram_combination-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| group_diagram_combination-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for group_diagram_combination-0.1.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / group_diagram_combination-0.1.1.tar.gz
| Download URL | group_diagram_combination-0.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c39437e6faf76a4f6a521b6d1015479c9bcc6fb4ebed6e88b881b32adb27c639
|
|
BLAKE2b-256 checksum How to use checksums |
49511a3bf08f23127e33ec05222e813b3c6a229abbf7d88bd7802dd32db8a9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Windows/10
|
Release files / group_diagram_combination-0.1.1-py3-none-any.whl
| Download URL | group_diagram_combination-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be898c9cb706fa2719d25b7a8c7a84cf76e8395cc52df083b864548ec8b4ca0e
|
|
BLAKE2b-256 checksum How to use checksums |
2b5bc10209dde47536782b077e2939c8908963668bcd52801d3eec8dec28b9d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Windows/10
|
Security for group-diagram-combination 0.1.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.