pub fn validate_graph_standalone( graph: &IrGraph, ) -> Result<(), Vec<ValidationError>>
Validate a single graph. Returns Ok(()) or the list of errors.