pub fn find_cycles(graph: &EinsumGraph) -> Vec<Cycle>Expand description
Find all cycles in the computation graph.
Uses depth-first search with backtracking to enumerate all simple cycles. Note: This can be expensive for large graphs with many cycles.