hatvis.problems.minimal_transversals#

hatvis.problems.minimal_transversals(H, max_size=None)[source]#

All minimal transversals (Berge’s sequential algorithm).

A transversal meets every hyperedge; it is minimal if no proper subset is a transversal. Berge’s method processes the hyperedges one by one: \(Tr(E_1\ldots E_k)=\min\{T\cup\{v\}: T\in Tr(E_1\ldots E_{k-1}), v\in E_k\}\). The output can be exponential; max_size discards larger transversals (the result is then the set of minimal transversals of at most that size).

Examples using hatvis.problems.minimal_transversals#

Covering and hitting: minimal monitoring sets

Covering and hitting: minimal monitoring sets