【Python, networkx】max_weight_matchingの裏側
はじめに
以下の記事で用いた "max_weight_matching()" について、ザッとまとめた。
upura.hatenablog.com
max_weight_matching() について
どういう関数?
- どのノードも一度以上エッジの端点にならないようなマッチングのパターンの中で、全てのエッジの重みの合計が最も大きい組み合わせを返す関数
- 計算量は (number of nodes ** 3)
アルゴリズムの詳細
Efficient Algorithms for Finding Maximum Matching in Graphs”, Zvi Galil, ACM Computing Surveys, 1986.
http://www.cs.kent.edu/~dragan/GraphAn/p23-galil.pdf
bipartite.maximum_matching() について
Documentation
*1:Matching (graph theory) - Wikipedia, 2018.06.01 available.