hatvis.problems#

Combinatorial problems formulated on hypergraphs.

Many decision problems are naturally stated on a family of sets:

  • set cover – choose hyperedges that cover all vertices at minimum cost (staffing, sensor placement, test selection);

  • hitting set / transversal – choose vertices that meet every hyperedge (minimal diagnoses, key resources, monitoring points); the minimal transversals form the transversal hypergraph \(Tr(H)\);

  • matching and independent sets – non-conflicting selections;

  • coloring – conflict-free scheduling (no hyperedge monochromatic);

  • acyclicity – GYO reduction and join trees (relational databases, efficient inference);

  • directed hypergraphs – B-reachability and shortest hyperpaths for AND-type dependencies (assembly, Horn clauses, reaction networks).

Set cover, hitting set, minimal transversals, matching, coloring, acyclicity and join trees, conformality, Helly property, directed hyperpaths.

Functions#

greedy_set_cover(H[, universe, costs])

Greedy set cover (Chvátal 1979).

set_cover(H[, universe, costs])

Minimum-cost set cover as an integer program (solved with SciPy's HiGHS interface).

greedy_hitting_set(H[, costs])

Greedy hitting set: the greedy set cover of the dual hypergraph.

hitting_set(H[, costs])

Minimum (cost) hitting set, i.e. minimum vertex cover / transversal, as an integer program.

minimal_transversals(H[, max_size])

All minimal transversals (Berge's sequential algorithm).

transversal_hypergraph(H[, max_size])

The transversal (blocker) hypergraph \(Tr(H)\) of the minimal transversals.

maximum_matching(H[, weighted])

Maximum (weight) matching: pairwise disjoint hyperedges, as an integer program.

greedy_coloring(H[, strong, order])

Greedy vertex coloring.

is_two_colorable(H[, max_nodes])

Decide Property B (2-colorability without monochromatic hyperedge) by backtracking.

gyo_reduction(H)

GYO reduction (Graham 1979; Yu and Özsoyoğlu 1979).

is_alpha_acyclic(H)

True if the hypergraph is \(\alpha\)-acyclic (see gyo_reduction()).

join_tree(H)

Join tree of an \(\alpha\)-acyclic hypergraph.

is_conformal(H)

Conformality: every maximal clique of the clique expansion lies inside a hyperedge.

has_helly_property(H)

Helly property: every pairwise intersecting subfamily has a common vertex.

b_reachable(D, sources)

Vertices B-reachable from sources (B-visit, Gallo et al. 1993).

shortest_hyperpaths(D, sources[, cost])

Minimum B-hyperpath distances from sources (SBT procedure of Gallo et al. 1993).