best-first-search-0.0.2
توضیحات
My package description
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | best-first-search-0.0.2 |
| نام | best-first-search |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Han Jaeseung |
| ایمیل نویسنده | thestudentofkyoto@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/best-first-search/ |
| مجوز | MIT License Copyright (c) 2022 Han Jaeseung Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
# Best first search, using pre-sorted iterators

[](https://codecov.io/gh/studentofkyoto/best-first-search)

It finds the minimum cost path on a graph, where the cost of a path is linear sum of each edge's weight in it. To call the function, the followings are required:
- termination condition
- neighbor iterator; pre sorting the iterator helps the performance so that it iterates through each neighbor in ascending order of cost.
- cost addition function; in case you want to inject relaxation
For usage, take a look at `best_first_search.example`.
نیازمندی
| مقدار | نام |
|---|---|
| ==2.15.0 | pylint |
| <1.0 | mypy |
| - | setuptools-scm |
| <7.0.0 | pytest |
| <6.0 | isort |
| - | pytest-cov |
| - | codecov |
| >=2.8 | networkx |
| - | matplotlib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl best-first-search-0.0.2:
pip install best-first-search-0.0.2.whl
نصب پکیج tar.gz best-first-search-0.0.2:
pip install best-first-search-0.0.2.tar.gz