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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prime_link_knot_10-0.1.1.tar.gz.
File metadata
- Download URL: prime_link_knot_10-0.1.1.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50ca800989e44c60254a5487c048ab7710f5bf80285da503693b26d28983cb81
|
|
| MD5 |
9b4668fecfad3820cd45a27cf751ea2e
|
|
| BLAKE2b-256 |
9e474732a12126059e3f8ff2f48393c4bbf9303d6eb79f87cbc1e700de957f89
|
File details
Details for the file prime_link_knot_10-0.1.1-py3-none-any.whl.
File metadata
- Download URL: prime_link_knot_10-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
720c1e9089864713b679acf5139cf9d1d46647af5f2cb38f29dca556ab57817f
|
|
| MD5 |
c38b3219500f3650e7e0a5e05e5a7f42
|
|
| BLAKE2b-256 |
de16eb50c8eb051ce22b51266d6f59a0abe08a91477f72fd7c9fe831fb990ff7
|