munkres3

munkres algorithm for the Assignment Problem. Python 3 port.


License
Abstyles
Install
pip install munkres3==1.0.5.5

Documentation

Munkres implementation for Python

Introduction

The Munkres module provides an implementation of the Munkres algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm). The algorithm models an assignment problem as an NxM cost matrix, where each element represents the cost of assigning the ith worker to the jth job, and it figures out the least-cost solution, choosing a single item from each row and column in the matrix, such that no row and no column are used more than once.

See the docs in munkres.py and the home page for more details.

Copyright

© 2008 Brian M. Clapper

License

BSD license. See accompanying LICENSE file.