最短経路探索ライブラリ
Project description
about routemin
routeminは、特定のルート検索アルゴリズムを実装したPythonパッケージです。このパッケージを使用することで、鉄道ネットワークやその他のネットワーク上での最短経路を簡単に見つけることができます。
特徴
- 簡単に使える最短経路探索機能。
- 複数のルートオプション。
- カスタマイズ可能な検索パラメータ。
インストール
このパッケージはPython 3.6以上で動作します。以下のコマンドでインストールできます:
pip install routemin=0.1.0
使い方
基本的な使用方法は以下の通りです:
from routemin import create_graph, calculate_shortest_path
# グラフを作成
G = create_graph()
# 最短経路を計算
start_station = '三鷹'
end_station = '大崎'
include_dash = False
path, total_time, compact_lines = calculate_shortest_path(G, start_station, end_station, include_dash)
print(f"最短経路: {path}")
print(f"合計時間: {total_time}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
routemin-0.1.0.tar.gz
(5.4 kB
view details)
File details
Details for the file routemin-0.1.0.tar.gz.
File metadata
- Download URL: routemin-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40b32d00e258429177497eecdab88e5b67cfb6a6cce38f8eb529d59df2359f1d
|
|
| MD5 |
ae3fb080f379f5b82825c1b840393bbb
|
|
| BLAKE2b-256 |
8d060282272360b5fc9936a3a8b6e42cb85da53cdeb32f119aa1a2e38509ac8e
|