pub fn are_graphs_equivalent(g1: &EinsumGraph, g2: &EinsumGraph) -> boolExpand description
Check if two graphs are canonically equivalent.
This is more efficient than canonicalizing both graphs and comparing, as it can short-circuit on basic structural differences.