Skip to main content

最短経路探索ライブラリ

Project description

about routemin

routeminは、特定のルート検索アルゴリズムを実装したPythonパッケージです。このパッケージを使用することで、鉄道ネットワークやその他のネットワーク上での最短経路を簡単に見つけることができます。

特徴

  • 簡単に使える最短経路探索機能。
  • 複数のルートオプション。
  • カスタマイズ可能な検索パラメータ。

インストール

このパッケージはPython 3.6以上で動作します。以下のコマンドでインストールできます:

pip install routemin=0.1.1

使い方

基本的な使用方法は以下の通りです:

from routemin import create_graph, calculate_shortest_path, main

# グラフを作成
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


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.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file routemin-0.1.1.tar.gz.

File metadata

  • Download URL: routemin-0.1.1.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

Hashes for routemin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 abe9861bd8105c375bc0736ed6ae38b0487a2fdda1c23429e447d225dd997b53
MD5 a6b21e4e0ee1e71e9fc67a6929323e21
BLAKE2b-256 c9939f752a2288de41f9c56d9e78fac3fe3bfac775e1d057486dd0fb5eb9b3e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page