Skip to main content

expr_to_factor_graph

Function expr_to_factor_graph 

Source
pub fn expr_to_factor_graph(expr: &TLExpr) -> Result<FactorGraph>
Expand description

Convert a TensorLogic expression to a factor graph.

This function analyzes the logical structure and creates a factor graph where predicates become factors and quantified variables become nodes.