Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Modernize BGL shortest path algorithms

オープン
#455 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

まず、issue で名前が挙げられている Boost Graph の最短経路アルゴリズムと、提案されている代替案について引用されている論文を確認してください。issue では、ファイル、テスト、または実装対象となる単一のアルゴリズムが特定されていません。まず maintainer と協議して、対象を限定したアルゴリズムと統合範囲を決定してください。Done には合意したアルゴリズムの実装とテストが必要になりますが、その範囲はまだ指定されていません。

索引モデルが issue の本文から書いたものです。

説明

algorithm

The Sage Math graph module uses Boost Graph. This quick exploration comes from kind feedback from its maintainer David Coudert:

The BGL currently implements traditional (~1990) algorithms for shortest paths:

  • dijkstra_shortest_paths : 1959 single source, single shortest path tree, but constrained to positive weights
  • bellman_ford_shortest_paths : 1958 extends to negative weights with negative cycle detection
  • johnson_all_pairs_shortest_paths : 1977 combines bellman for reweighting with dijkstra running for each vertex
  • floyd_warshall_all_pairs_shortest_paths : 1962 better than johnson for dense graphs, uses dynamic programming
  • astar_search: 1968 single source to single target path, heuristically

But it lacks more modern algorithms:

  • Yen's algorithm (Yen 1971, cited ~500x) : k-shortest simple (loopless) paths between two vertices. At each iteration, finds the next shortest path by deviating from previously found paths. Baseline must-have
  • k-Shortest Simple Paths, Postponed Node Classification algorithm variant, (Al Zoobi et al 2023, cited ~13x) : best speed/memory tradeoff for finding k alternative paths, most performant
  • k-Shortest Simple Paths, SB* variant, (Al Zoobi et al 2023, cited ~13x) : fastest for small k, higher memory
  • Contraction Hierarchies (Geisberger et al., 2008, cited ~1200x) : amazing for road networks, 1000x+ speedup over Dijkstra
  • Hub labelling ( Abraham et al., 2011, cited ~400x) : sub-milliseconds shorttest path length oracle: avoids running dijsktra millions of times
主要言語
C++
スター
399
フォーク
247
平均マージ
1日 9時間
マージ済み PR(30日)
40

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/graph のほかの issue

boostorg/graph の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。