munkres3 · PyPI
https://pypi.org/project/munkres319.12.2012 · Construct a Munkres object: from munkres import Munkres m = Munkres () Then use it to compute the lowest cost assignment from a cost matrix. Here’s a sample program: from munkres import Munkres, print_matrix matrix = [ [5, 9, 1], [10, 3, 2], [8, 7, 4]] m = Munkres () indexes = m.compute (matrix) print_matrix (matrix, msg='Lowest cost through ...