Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

SymbolicEliminationTree

A SymbolicEliminationTree represents the computational structure used in variable elimination, particularly in sparse Cholesky or QR factorization. Each node in the tree corresponds to the elimination of a single variable.

The tree structure reveals dependencies: the elimination of a variable (node) depends on the results from its children in the tree. The root of the tree corresponds to the last variable eliminated. This structure is closely related to the resulting Bayes net or Bayes tree.

Open In Colab

Creating a SymbolicEliminationTree

An elimination tree is constructed from a SymbolicFactorGraph and an Ordering.

Symbolic Elimination Tree:
-(x2)
Symbolic Elimination Tree:
| -(x1)
Symbolic Elimination Tree:
| -  x1 x2
Symbolic Elimination Tree:
| | -(x0)
Symbolic Elimination Tree:
| | -  x0
Symbolic Elimination Tree:
| | -  x0 x1
Symbolic Elimination Tree:
| | | -(l1)
Symbolic Elimination Tree:
| | | -  x0 l1
Symbolic Elimination Tree:
| | -(l2)
Symbolic Elimination Tree:
| | -  x1 l2

(Note: Direct visualization of the elimination tree structure isn’t available via a simple .dot() method like factor graphs or Bayes nets/trees in the Python wrapper, but the print output shows the parent-child relationships.)