Skip to content
This repository was archived by the owner on Oct 5, 2026. It is now read-only.

Repository files navigation

Munkres implementation for Python

Abandonware Alert!

I am no longer maintaining this package. Eishit Nigram is now actively maintaining a version based upon this code, but with numerous improvements. I have handed the PyPI project to Eishit.

See: https://github.com/iameishit/Paldita-munkres


Historical

Introduction

The Munkres module provides an O(n^3) 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.

This particular implementation is based on https://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html.

See the docs on the project page for more details.

WARNING: As of version 1.1.0, munkres no longer supports Python 2. If you need to use this package with Python 2, install an earlier version. See the installation instructions for details.

Copyright

© 2008-2020 Brian M. Clapper

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

About

Munkres algorithm for Python

Resources

Stars

230 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages