Skip to main content

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)

Source distribution for group-diagram-combination 0.1.1
File Size Uploaded
group_diagram_combination-0.1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for group-diagram-combination 0.1.1
File Interpreter ABI Platform
group_diagram_combination-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

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