pd-code-pre-nxt 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pd_code_pre_nxt-0.1.1/PKG-INFO +64 -0
- pd_code_pre_nxt-0.1.1/README.md +44 -0
- {pd_code_pre_nxt-0.1.0 → pd_code_pre_nxt-0.1.1}/pyproject.toml +1 -1
- pd_code_pre_nxt-0.1.0/PKG-INFO +0 -43
- pd_code_pre_nxt-0.1.0/README.md +0 -23
- {pd_code_pre_nxt-0.1.0 → pd_code_pre_nxt-0.1.1}/LICENSE +0 -0
- {pd_code_pre_nxt-0.1.0 → pd_code_pre_nxt-0.1.1}/pd_code_pre_nxt/__init__.py +0 -0
- {pd_code_pre_nxt-0.1.0 → pd_code_pre_nxt-0.1.1}/pd_code_pre_nxt/main.py +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pd-code-pre-nxt
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: get `pre` and `next` node for every number in pd_code.
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: GGN_2015
|
|
8
|
+
Author-email: neko@jlulug.org
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Requires-Dist: pd-code-sanity (>=0.1.0)
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# pd-code-pre-nxt
|
|
21
|
+
|
|
22
|
+
Build deterministic predecessor and successor maps for every PD-code arc label.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pip install pd-code-pre-nxt
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage example
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from pd_code_pre_nxt import get_pre_nxt
|
|
34
|
+
|
|
35
|
+
pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
|
|
36
|
+
pre, nxt = get_pre_nxt(pd)
|
|
37
|
+
print(nxt[1], pre[1])
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Algorithm
|
|
41
|
+
|
|
42
|
+
Opposite crossing slots define the component graph. Each component must be a two-regular cycle, with a special deterministic treatment for two-label cycles. The smallest label is chosen as the cycle start; both traversal directions are compared lexicographically and the canonical one defines `pre` and `nxt`. Numeric suffixes are supported for temporary prefixed labels used during connected sums.
|
|
43
|
+
|
|
44
|
+
## Input conventions
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
## External software
|
|
49
|
+
|
|
50
|
+
No external software is required.
|
|
51
|
+
|
|
52
|
+
## Development
|
|
53
|
+
|
|
54
|
+
Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
poetry check
|
|
58
|
+
poetry build
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT. See `LICENSE`.
|
|
64
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# pd-code-pre-nxt
|
|
2
|
+
|
|
3
|
+
Build deterministic predecessor and successor maps for every PD-code arc label.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install pd-code-pre-nxt
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from pd_code_pre_nxt import get_pre_nxt
|
|
15
|
+
|
|
16
|
+
pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
|
|
17
|
+
pre, nxt = get_pre_nxt(pd)
|
|
18
|
+
print(nxt[1], pre[1])
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Algorithm
|
|
22
|
+
|
|
23
|
+
Opposite crossing slots define the component graph. Each component must be a two-regular cycle, with a special deterministic treatment for two-label cycles. The smallest label is chosen as the cycle start; both traversal directions are compared lexicographically and the canonical one defines `pre` and `nxt`. Numeric suffixes are supported for temporary prefixed labels used during connected sums.
|
|
24
|
+
|
|
25
|
+
## Input conventions
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
## External software
|
|
30
|
+
|
|
31
|
+
No external software is required.
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
poetry check
|
|
39
|
+
poetry build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT. See `LICENSE`.
|
pd_code_pre_nxt-0.1.0/PKG-INFO
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pd-code-pre-nxt
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: get `pre` and `next` node for every number in pd_code.
|
|
5
|
-
License: MIT
|
|
6
|
-
License-File: LICENSE
|
|
7
|
-
Author: GGN_2015
|
|
8
|
-
Author-email: neko@jlulug.org
|
|
9
|
-
Requires-Python: >=3.10
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
-
Requires-Dist: pd-code-sanity (>=0.1.0)
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
|
|
20
|
-
# pd-code-pre-nxt
|
|
21
|
-
|
|
22
|
-
Build deterministic predecessor and successor maps from PD-code topology.
|
|
23
|
-
|
|
24
|
-
## Installation
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pip install pd-code-pre-nxt
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Quick start
|
|
31
|
-
|
|
32
|
-
`from pd_code_pre_nxt import get_pre_nxt`.
|
|
33
|
-
|
|
34
|
-
PD codes are lists of four-entry crossings. Each arc label must occur exactly twice. Functions validate their inputs and do not mutate caller-owned PD-code lists unless explicitly documented.
|
|
35
|
-
|
|
36
|
-
## Development
|
|
37
|
-
|
|
38
|
-
Use Python 3.10 or newer for Python packages. Build distributions with `poetry build`. Run the package's tests or examples before publishing. C++ projects require a modern standards-compliant compiler.
|
|
39
|
-
|
|
40
|
-
## License
|
|
41
|
-
|
|
42
|
-
MIT. See `LICENSE`.
|
|
43
|
-
|
pd_code_pre_nxt-0.1.0/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# pd-code-pre-nxt
|
|
2
|
-
|
|
3
|
-
Build deterministic predecessor and successor maps from PD-code topology.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install pd-code-pre-nxt
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick start
|
|
12
|
-
|
|
13
|
-
`from pd_code_pre_nxt import get_pre_nxt`.
|
|
14
|
-
|
|
15
|
-
PD codes are lists of four-entry crossings. Each arc label must occur exactly twice. Functions validate their inputs and do not mutate caller-owned PD-code lists unless explicitly documented.
|
|
16
|
-
|
|
17
|
-
## Development
|
|
18
|
-
|
|
19
|
-
Use Python 3.10 or newer for Python packages. Build distributions with `poetry build`. Run the package's tests or examples before publishing. C++ projects require a modern standards-compliant compiler.
|
|
20
|
-
|
|
21
|
-
## License
|
|
22
|
-
|
|
23
|
-
MIT. See `LICENSE`.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|