prime-link-knot-10
Provide the prime knot and link catalogue used by the TopLink generator.
Installation
pip install prime-link-knot-10
Usage example
import prime_link_knot_10
catalogue = prime_link_knot_10.load_pd_code()
print(catalogue["K3a1"])
print(prime_link_knot_10.get_all_prime_under10()[:5])
print("K4a1" in prime_link_knot_10.load_amphicheiral())
Algorithm
Package data is loaded once and cached. PD records from knot, link, mirror, and non-mirror tables are merged into one dictionary. Mirror duplicates of amphicheiral objects are omitted. Names are sorted structurally by crossing number, object type, alternating class, table index, and mirror status. A depth-first multiset enumeration supplies all prime-factor combinations up to a crossing bound.
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. All catalogue files are included in the wheel and sdist.
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 prime-link-knot-10 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 | |
|---|---|---|---|
| prime_link_knot_10-0.1.1.tar.gz | 34.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prime_link_knot_10-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.4 kB
Release files / prime_link_knot_10-0.1.1.tar.gz
| Download URL | prime_link_knot_10-0.1.1.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50ca800989e44c60254a5487c048ab7710f5bf80285da503693b26d28983cb81
|
|
BLAKE2b-256 checksum How to use checksums |
9e474732a12126059e3f8ff2f48393c4bbf9303d6eb79f87cbc1e700de957f89
|
| 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 / prime_link_knot_10-0.1.1-py3-none-any.whl
| Download URL | prime_link_knot_10-0.1.1-py3-none-any.whl |
|---|---|
| Size | 40.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
720c1e9089864713b679acf5139cf9d1d46647af5f2cb38f29dca556ab57817f
|
|
BLAKE2b-256 checksum How to use checksums |
de16eb50c8eb051ce22b51266d6f59a0abe08a91477f72fd7c9fe831fb990ff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Windows/10
|