com-link-gen-10
Enumerate textual representations of composite links built from prime knots and links with at most ten crossings.
Installation
pip install com-link-gen-10
Usage example
from com_link_gen_10 import com_link_gen
representations = com_link_gen(total_crs=5, max_component_cnt=2)
print(len(representations)) # 33
print(representations[0])
Algorithm
Prime names are sorted by crossing number, knot/link class, alternating class, table index, and mirror flag. A depth-first multiset enumeration permits repeated prime factors and keeps every non-empty solution whose crossing sum is within the bound. For each solution, component counts are loaded from its PD codes. The group-combination algorithm then enumerates connected edge sets with exactly factor_count - 1 joins, producing one deterministic link-representation document per valid 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. This package is implemented entirely in Python and reads data installed with the prime-link catalogue.
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 com-link-gen-10 0.2.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 | |
|---|---|---|---|
| com_link_gen_10-0.2.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| com_link_gen_10-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / com_link_gen_10-0.2.1.tar.gz
| Download URL | com_link_gen_10-0.2.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5910528755c91224f40f6245c098c3639d2caccf78bbff80495d6cae22bf0b5
|
|
BLAKE2b-256 checksum How to use checksums |
304608f2a0958388917c674dc47e4fc7fbe468a258165f63525e40c654fbe29e
|
| 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 / com_link_gen_10-0.2.1-py3-none-any.whl
| Download URL | com_link_gen_10-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fcdcfada24a0b9fc7e7c69ba92c912f1cb99404a5fa0d3989c23290fc79607c
|
|
BLAKE2b-256 checksum How to use checksums |
c923ac9ea3d7ca3cddfeaacda5442f2d8de8a5f3e1b7d3e4d70ee9f2ce1f1c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Windows/10
|