pub fn evaluate(
graph: &Graph,
inputs: &HashMap<u16, bool>,
) -> Result<HashMap<u16, bool>, EvalError>Expand description
Evaluate a TØR-G graph with given input values (HashMap API).
This is a convenience wrapper around evaluate_into for callers
that prefer HashMap-based input/output.
§Arguments
graph- The graph to evaluateinputs- Map from input IDs to their boolean values
§Returns
Map from output IDs to their computed boolean values.
§Errors
Returns an error if a required input is missing.