autofragment.algorithms.hungarian

Hungarian algorithm for optimal assignment.

This module implements the Hungarian (Munkres) algorithm for solving the minimum cost assignment problem, used for matching molecules between reference and target structures.

Functions

hungarian_assignment(cost)

Solve the minimum cost assignment problem using the Hungarian algorithm.