mbi.junction_tree
Utilities for constructing and working with junction trees.
This module provides functions for building junction trees from a given domain and set of cliques. Junction trees are fundamental structures in graphical model inference, enabling efficient message passing algorithms. Functions include finding maximal cliques, determining message passing orders, graph triangulation, computing greedy elimination orders, and estimating model size.
Functions
Compute a greedy elimination order. |
|
Size of the full junction tree parameters, measured in megabytes. |
|
Create a junction tree. |
|
Return the list of maximal cliques in the model. |
|
Return a valid message passing order. |
- mbi.junction_tree.maximal_cliques(junction_tree: Graph) list[tuple[str | int, ...]][source]
Return the list of maximal cliques in the model.
- mbi.junction_tree.message_passing_order(junction_tree: Graph) list[tuple[tuple[str | int, ...], tuple[str | int, ...]]][source]
Return a valid message passing order.
- mbi.junction_tree.greedy_order(domain: Domain, cliques: Sequence[tuple[str | int, ...]], stochastic: bool = False, elim: list[str | int] | None = None) tuple[list[str | int], int][source]
Compute a greedy elimination order.