Hungarian algorithm in Python

2019-02-09 03:42发布

问题:

Is there good implementation of Hungarian algorithm in standard python libraries?

回答1:

I just tried:


pip install munkres

and it worked. Here you can find a short explanation on how to use it.

I got an error trying to install "hungarian".



回答2:

Check this munkres out



回答3:

There are multiple Options:

pip install munkres

Documentation here

pip install hungarian

Documentation here

pip install scipy
scipy.optimize.linear_sum_assignment

Documentation here