cpp-pd-code-simplify-interface 0.1.12__py3-none-any.whl → 0.1.13__py3-none-any.whl
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.
- cpp_pd_code_simplify_interface/data/src/pdcode_simplify.cpp +10 -2
- {cpp_pd_code_simplify_interface-0.1.12.dist-info → cpp_pd_code_simplify_interface-0.1.13.dist-info}/METADATA +1 -1
- {cpp_pd_code_simplify_interface-0.1.12.dist-info → cpp_pd_code_simplify_interface-0.1.13.dist-info}/RECORD +5 -5
- {cpp_pd_code_simplify_interface-0.1.12.dist-info → cpp_pd_code_simplify_interface-0.1.13.dist-info}/WHEEL +0 -0
- {cpp_pd_code_simplify_interface-0.1.12.dist-info → cpp_pd_code_simplify_interface-0.1.13.dist-info}/entry_points.txt +0 -0
|
@@ -1074,12 +1074,16 @@ std::vector<std::vector<int>> collect_simple_paths(
|
|
|
1074
1074
|
const SimplifierOptions& options) {
|
|
1075
1075
|
check_timeout(options);
|
|
1076
1076
|
std::vector<std::vector<int>> paths;
|
|
1077
|
-
if (source
|
|
1077
|
+
if (source < 0 || target < 0 ||
|
|
1078
1078
|
source >= static_cast<int>(graph.faces.size()) ||
|
|
1079
1079
|
target >= static_cast<int>(graph.faces.size()) ||
|
|
1080
1080
|
cutoff <= 0) {
|
|
1081
1081
|
return paths;
|
|
1082
1082
|
}
|
|
1083
|
+
if (source == target) {
|
|
1084
|
+
paths.push_back(std::vector<int>{source});
|
|
1085
|
+
return paths;
|
|
1086
|
+
}
|
|
1083
1087
|
|
|
1084
1088
|
std::vector<char> visited(graph.faces.size(), false);
|
|
1085
1089
|
std::vector<int> current_path{source};
|
|
@@ -1196,10 +1200,14 @@ std::vector<std::vector<int>> collect_heuristic_paths(
|
|
|
1196
1200
|
check_timeout(options);
|
|
1197
1201
|
std::vector<std::vector<int>> paths;
|
|
1198
1202
|
const int face_count = static_cast<int>(graph.faces.size());
|
|
1199
|
-
if (source
|
|
1203
|
+
if (source < 0 || target < 0 ||
|
|
1200
1204
|
source >= face_count || target >= face_count || cutoff <= 0) {
|
|
1201
1205
|
return paths;
|
|
1202
1206
|
}
|
|
1207
|
+
if (source == target) {
|
|
1208
|
+
paths.push_back(std::vector<int>{source});
|
|
1209
|
+
return paths;
|
|
1210
|
+
}
|
|
1203
1211
|
|
|
1204
1212
|
const std::vector<int> distance = heuristic_distances_to_target(graph, target, cutoff, options);
|
|
1205
1213
|
const int infinity = std::numeric_limits<int>::max() / 4;
|
|
@@ -3,10 +3,10 @@ cpp_pd_code_simplify_interface/__main__.py,sha256=fdA1QWBe5LNX0fbtaJXa1-dwEhrg_4
|
|
|
3
3
|
cpp_pd_code_simplify_interface/_worker.py,sha256=pgvL3zlAZkUVM033YKAT1geXxcI8TxTUXLp83sgrZgw,1477
|
|
4
4
|
cpp_pd_code_simplify_interface/main.py,sha256=QkhR_2Cq9Ep_8hT5qpFKML7bhq99SuQSKO0jePJHp3U,37007
|
|
5
5
|
cpp_pd_code_simplify_interface/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
|
-
cpp_pd_code_simplify_interface-0.1.
|
|
7
|
-
cpp_pd_code_simplify_interface-0.1.
|
|
8
|
-
cpp_pd_code_simplify_interface-0.1.
|
|
6
|
+
cpp_pd_code_simplify_interface-0.1.13.dist-info/entry_points.txt,sha256=ThorC4Enxp317TKITsXm9pE0gUp7pt-pP6Dl5mEPUR8,91
|
|
7
|
+
cpp_pd_code_simplify_interface-0.1.13.dist-info/METADATA,sha256=-uQyhNQjhrKxBj2_HaRqkrWhF50ojY878shH3kafxaE,4553
|
|
8
|
+
cpp_pd_code_simplify_interface-0.1.13.dist-info/WHEEL,sha256=eY7nduwzv-ldUxpzbRlxwvC693Hg6PX8bWDjEHjZ_dk,88
|
|
9
9
|
cpp_pd_code_simplify_interface/data/include/pdcode_simplify/pdcode_simplify.hpp,sha256=ZWZVWuSXN9HgCYd88pfURgLqs-3_0xGDi_ZEPZrYUyY,5135
|
|
10
10
|
cpp_pd_code_simplify_interface/data/src/native_interface.cpp,sha256=-X9ztIyCl5y27Yhj2vCyC4bHCeDpFlcKm6ACPMDoxHs,6708
|
|
11
|
-
cpp_pd_code_simplify_interface/data/src/pdcode_simplify.cpp,sha256=
|
|
12
|
-
cpp_pd_code_simplify_interface-0.1.
|
|
11
|
+
cpp_pd_code_simplify_interface/data/src/pdcode_simplify.cpp,sha256=xQd5-tirH-Mk4dLZpXAAZo6qHP4mpAFO94Z8GFCPJbg,95788
|
|
12
|
+
cpp_pd_code_simplify_interface-0.1.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|