pd-code-connected-sum 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.
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: pd-code-connected-sum
3
+ Version: 0.1.1
4
+ Summary: make connected sum for link 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-pre-nxt (>=0.1.0)
18
+ Requires-Dist: pd-code-sanity (>=0.1.0)
19
+ Description-Content-Type: text/markdown
20
+
21
+ # pd-code-connected-sum
22
+
23
+ Join two selected oriented PD-code components and canonically renumber the result.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ pip install pd-code-connected-sum
29
+ ```
30
+
31
+ ## Usage example
32
+
33
+ ```python
34
+ from pd_code_connected_sum import connected_sum
35
+
36
+ left = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
37
+ right = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
38
+ result, label_map = connected_sum(left, right, 1, 1)
39
+ print(result)
40
+ print(label_map["a_1"], label_map["b_1"])
41
+ ```
42
+
43
+ ## Algorithm
44
+
45
+ Each input component is converted to a deterministic oriented cycle. The algorithm locates the incidence immediately after each selected arc, offsets the second code to avoid collisions, cuts those two oriented arcs, and glues the endpoints crosswise. It then canonically orders component cycles, assigns contiguous labels, orients every crossing consistently, and returns maps for all original labels. This avoids the incorrect local crossing replacement used by older releases.
46
+
47
+ ## Input conventions
48
+
49
+ 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.
50
+
51
+ ## External software
52
+
53
+ No external software is required.
54
+
55
+ ## Development
56
+
57
+ Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
58
+
59
+ ```bash
60
+ poetry check
61
+ poetry build
62
+ ```
63
+
64
+ ## License
65
+
66
+ MIT. See `LICENSE`.
67
+
@@ -0,0 +1,46 @@
1
+ # pd-code-connected-sum
2
+
3
+ Join two selected oriented PD-code components and canonically renumber the result.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install pd-code-connected-sum
9
+ ```
10
+
11
+ ## Usage example
12
+
13
+ ```python
14
+ from pd_code_connected_sum import connected_sum
15
+
16
+ left = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
17
+ right = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
18
+ result, label_map = connected_sum(left, right, 1, 1)
19
+ print(result)
20
+ print(label_map["a_1"], label_map["b_1"])
21
+ ```
22
+
23
+ ## Algorithm
24
+
25
+ Each input component is converted to a deterministic oriented cycle. The algorithm locates the incidence immediately after each selected arc, offsets the second code to avoid collisions, cuts those two oriented arcs, and glues the endpoints crosswise. It then canonically orders component cycles, assigns contiguous labels, orients every crossing consistently, and returns maps for all original labels. This avoids the incorrect local crossing replacement used by older releases.
26
+
27
+ ## Input conventions
28
+
29
+ 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.
30
+
31
+ ## External software
32
+
33
+ No external software is required.
34
+
35
+ ## Development
36
+
37
+ Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
38
+
39
+ ```bash
40
+ poetry check
41
+ poetry build
42
+ ```
43
+
44
+ ## License
45
+
46
+ MIT. See `LICENSE`.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pd-code-connected-sum"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "make connected sum for link pd_code"
5
5
  authors = [
6
6
  {name = "GGN_2015",email = "neko@jlulug.org"}
@@ -1,44 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pd-code-connected-sum
3
- Version: 0.1.0
4
- Summary: make connected sum for link 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-pre-nxt (>=0.1.0)
18
- Requires-Dist: pd-code-sanity (>=0.1.0)
19
- Description-Content-Type: text/markdown
20
-
21
- # pd-code-connected-sum
22
-
23
- Join two oriented PD-code components and canonically renumber the result.
24
-
25
- ## Installation
26
-
27
- ```bash
28
- pip install pd-code-connected-sum
29
- ```
30
-
31
- ## Quick start
32
-
33
- `from pd_code_connected_sum import connected_sum` then `connected_sum(a, b, a_label, b_label)`.
34
-
35
- 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.
36
-
37
- ## Development
38
-
39
- 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.
40
-
41
- ## License
42
-
43
- MIT. See `LICENSE`.
44
-
@@ -1,23 +0,0 @@
1
- # pd-code-connected-sum
2
-
3
- Join two oriented PD-code components and canonically renumber the result.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- pip install pd-code-connected-sum
9
- ```
10
-
11
- ## Quick start
12
-
13
- `from pd_code_connected_sum import connected_sum` then `connected_sum(a, b, a_label, b_label)`.
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`.